Donator Points NPC v2

Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Donator Points NPC v2

    Well this is my first release and I thought I'd share it with you guys . Its not done yet but ill be updating it frequently.
    PHP Code:
    //Made by Anujan of HeartlessMS and Ragezone Forums. 
    var status 0;
     
    function 
    start() {
        
    status = -1;
        
    action(100);
    }
     
    function 
    action(modetypeselection) {
        if (
    mode == -1) {
            
    cm.dispose();
        } else {
            if (
    mode == && status == 0) {
                
    cm.dispose();
                return;
            }
            if (
    mode == 1)
                
    status++;
            else
                
    status--;
            if (
    status == 0) {
                if (
    cm.getDonationPoints() <= 0) {
                    
    cm.sendOk("You don't have any #g#eDonation Points#k#n, please buy some from #b#eAnujan#k#n or #e#rJen#k#n before you try to trade them in.");
                    
    cm.dispose();
                } else {
                    
    cm.sendSimple("Hello, #b#h #.#k Would you like to trade in your Donation Points for some awesome items. Some of these items include: #v2340000# #v1122000# #v1002140#. \r\n What would you like to do?\r\n#L1# Trade 1 Donation Point for 5 #v2340000##l\r\n #L2# Trade 2 Donation Points for 12 #v2340000##l\r\n#L3# Trade 5 Donator Points for 1 #v1002357##l\r\n#L4# Trade 5 Donation Points for 1 #v2014200##l\r\n#L5#Trade 25 Donation Points for 1 #v1002140##l\r\n#L6# Ill come back later with more points for better prizes#l");
                }
            } else if (
    status == 1) {
                if (
    selection == 1) {
                    if (
    cm.getDonationPoints() >= 1) {
                        
    cm.gainDonationPoints(-1);                
                        
    cm.gainItem(23400005); 
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
                        
    cm.dispose();
                    }                                
                } else if (
    selection == 2) {
                    if (
    cm.getDonationPoints() >= 2) {
                        
    cm.gainDonationPoints(-2);                
                        
    cm.gainItem(234000012); 
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
                        
    cm.dispose();
                    }    
                } else if (
    selection == 3) {
                    if (
    cm.getDonationPoints() >= 5) {
                        
    cm.gainDonationPoints(-5);                
                        
    cm.gainItem(11220001); 
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
                        
    cm.dispose();
                    }    
                } else if (
    selection == 4) {
                    if (
    cm.getDonationPoints() >= 5) {
                        
    cm.gainDonationPoints(-5);                
                        
    cm.gainItem(20412001); 
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
                        
    cm.dispose();
                    }    
                }else if (
    selection == 5) {
                    if (
    cm.getDonationPoints() >= 25) {
                        
    cm.gainDonationPoints(-25);                
                        
    cm.gainItem(10021401); 
                        
    cm.dispose();
                    } else {
                        
    cm.sendOk("You don't have any Donation Points. Please come back when you have some to cash in.");
                        
    cm.dispose();
                    }    
                }else  {
                        
    cm.sendOk("Ok, just talk to me when you want to trade! Ill add more items to my collection when I see Lahos again.");
                        
    cm.dispose();
                }
            }
        }

    If you find any bugs or anything wrong post here and ill fix it up.

    Credits to MikeTheMak and Kipee
    Last edited by Anujan; 22-08-08 at 04:45 PM.


  2. #2
    Enthusiast helldemon12 is offline
    MemberRank
    Jul 2008 Join Date
    45Posts

    Re: Donator Points NPC v1

    explain plz

  3. #3
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: Donator Points NPC v1

    Its a donation NPC that trades items for Shroom's donation points

  4. #4
    Infraction Banned nejevoli is offline
    MemberRank
    May 2008 Join Date
    ♥ In Your HeartLocation
    574Posts

    Re: Donator Points NPC v1

    Could you do something like a NPC that shows images of the items that the donator can trade for with donator points? and after he clicks on the selection he wants, checks for donator point and then allow the donator to get his prize. i think that would be cool. eg; #i GM scroll # shows gm scroll and then needs 50 points to get it, so donator clicks on it, npc checks for 50< and then allows him to collect it if he has it. Good luck and nice release. peace~

  5. #5
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: Donator Points NPC v1

    ok ill work on that nejevoli, but theres many kinds of GM Scrolls and i think they all look the same dont they?

  6. #6
    Account Upgraded | Title Enabled! Giro is offline
    MemberRank
    May 2008 Join Date
    1,089Posts

    Re: Donator Points NPC v1

    Add tags [Release].

  7. #7
    RaGEZONE = FLaMEZONE thisisakevin is offline
    MemberRank
    Jul 2008 Join Date
    284Posts

    Re: Donator Points NPC v1

    My server's donator points shows pics and uses arrays so even leechers can edit the prices and items!

  8. #8
    Infraction Banned nejevoli is offline
    MemberRank
    May 2008 Join Date
    ♥ In Your HeartLocation
    574Posts

    Re: Donator Points NPC v1

    can try making them random. so ;p heh heh , good luck on doing so. just ideas from me :)

  9. #9
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: [Release]Donator Points NPC v1

    k ill try that after I eat lunch

  10. #10
    Valued Member candyman1111 is offline
    MemberRank
    Aug 2008 Join Date
    142Posts

    Re: [Release]Donator Points NPC v1

    wtf, theirs like 4 of these been released 0.o jesus

  11. #11
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: [Release]Donator Points NPC v1

    Quote Originally Posted by candyman1111 View Post
    wtf, theirs like 4 of these been released 0.o jesus
    oh really? Can you link me to one. I can't seem to find any.

  12. #12
    Valued Member candyman1111 is offline
    MemberRank
    Aug 2008 Join Date
    142Posts

    Re: [Release]Donator Points NPC v1

    hmm, you just have to look at the aclove ms donator treads ^^

  13. #13
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: [Release]Donator Points NPC v1

    That doesnt use Donator Points. Thats for Commands and it uses isDonator. This allows you to trade Donator Points from Flav's thread for items.

  14. #14
    Valued Member candyman1111 is offline
    MemberRank
    Aug 2008 Join Date
    142Posts

    Re: [Release]Donator Points NPC v1

    0.o didnt he release an npc or shop cause im sure i saw 1 in his tread

  15. #15
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: [Release]Donator Points NPC v1

    His NPC was to check how many points you had not to trade them in.



Page 1 of 3 123 LastLast

Advertisement