[Release] Some NPCs [Non-GMS]

Results 1 to 9 of 9
  1. #1
    Valued Member XotiCraze is offline
    MemberRank
    Dec 2008 Join Date
    104Posts

    [Release] Some NPCs [Non-GMS]

    Introduction :
    Hi all RaGEZONERs, today i'm releasing some NPCs that i made in the past. It may not be good or released before so please do not flame. Take the scripts and claim it as yours i dont care, i dont need credits or whatever shit. I am quitting ragezone but i will come back and see regularly and this is my last release and if you don't know, i am bendanx3.

    Usage :
    Don't use it if you dont know how to use.

    Scripts:
    Warper :
    PHP Code:
    /**************************************** 
     *@author XotiCraze
     *[SactualMS] Warper
     *****************************************/ 

    var status 0;
    var 
    bossmaps = Array(100000005103000804541010**** 890000001105070002105090900230040420280030000220080001240020402240020**** 801040**** 240060200); // Someone else's House, The Grave of Mushmom, The cursed Sanctuary, The Cave of Pianus, Zakums Altar, Origin of Clocktower, Manons Forest, Griffey Forest, The Nightmarish Last Days, Horntails Cave
    var monstermaps = Array(100040001801040004211040200541000300541010000541010010 ,541010020 ,541010030 ,541010040 ,541010050541010060541010**** 101010**** 104040000103000**** 103000**** 101030**** 106000002101030103101040001101040003101030001104010001105070001105090300105040306230020000230010400211041400222010000220080000220070301220070201220050300220010500250020000251010000200040000200010301240020**** 240040500240040000600020300801040004800020130);
    var 
    townmaps = Array(101000068000000023000000061002000054000000054100000010100000021100000010000000025100000010300000022200000010400000024000000022000000025000000080000000060000000022100000020000000010200000080100000010504030060000);
    var 
    chosenMap;
    var 
    maps;

    function 
    start() {
        
    status = -1;
        
    action(100);
    }

    function 
    action(modetypeselection
    {
        if (
    mode == -1) {
            
    cm.dispose();
        } else if (
    mode == 0) {
            if (
    status >= 0) {
                
    cm.sendOk("#r[SactualMS] Transportation#n\r\n\r\nSee you next time!.");
                
    cm.dispose();
                return;
            }
        } else if (
    mode == 1) {
            
    status++;
        } else {
            
    status--;
        } if (
    status == 0) {
            var 
    welcome "#r[SactualMS] Transportation#n\r\n\r\nHey I'm SactualMS's All-in-one Teleport Manager!\r\n\r\n";
            var 
    choices = Array("[SactualMS] Cities""[SactualMS] Monster Maps""[SactualMS] Boss Maps");
                for (var 
    0choices.lengthw++) {
                    
    welcome += "\r\n#L" "#" choices[w] + "#l";
                }
            
    cm.sendSimple(welcome);
        } else if (
    status == 1) {
            switch(
    selection) {
                case 
    0:
                    var 
    city "#r[SactualMS] Transportation#n\r\n\r\nPlease select one of these [CITIES].#b";
                        for (var 
    0townmaps.lengthc++) {
                            
    city += "\r\n#L" "##m" townmaps[c] + "##l";
                        }
                    
    cm.sendSimple(city);
                    return;
                case 
    1:
                    var 
    monster "#r[SactualMS] Transportation#n\r\n\r\nPlease select one of these [MONSTER MAPS].#b";
                        for (var 
    0monstermaps.lengthm++) {
                            
    monster += "\r\n#L" "##m" monstermaps[m] + "##l";
                        }
                    
    cm.sendSimple(monster);
                    return;
                case 
    2:
                    var 
    boss "#r[SactualMS] Transportation#n\r\n\r\nPlease selection of these [BOSS MAPS].#b";
                        for (var 
    0bossmaps.lengthb++) {
                            
    boss += "\r\n#L" "##m" bossmaps[b] + "##l";
                        }
                    
    cm.sendSimple(boss);
                    return;
            }
        } else if (
    status == 2) {
            
    maps townmaps[selection] || monstermaps[selection] || bossmaps[selection]; // this sucks i know LOL :D
            
    cm.sendYesNo("#r[SactualMS] Transportation#n\r\n\r\nDo you want to go to #m" maps "#?");
            
    chosenMap selection;
        } else if (
    status == 3) {
            
    maps townmaps[chosenMap] || monstermaps[chosenMap] || bossmaps[chosenMap];
            
    cm.warp(maps);
            
    cm.sendOk("#r[SactualMS] Transportation#n\r\n\r\nWelcome to #m" maps "#.");
            
    cm.dispose();
        }

    EXP Gachapon :
    PHP Code:
     /**************************************** 
      *@author XotiCraze [XoticStory]
      *@usage exp gachapon 
      *****************************************/ 

    var next;
    var 
    status 0;
    var 
    exp Math.floor(Math.random() * 1000000);
    var 
    chances Math.floor(Math.random() * 100);
    var 
    reqItem 4001129// change the item ID here .
    var reqLevel 50;
    var 
    repeat true;

    function 
    start() {
        
    status = -1;
        
    action(100);
    }

    function 
    action(modetypeselection
    {
        if (
    mode == -1) {
            
    cm.dispose();
        } else {
        if (
    mode == && status == 0) {
            
    cm.dispose();
            return;
        } else if (
    mode == 1) {
            
    status++;
        } else {
            
    status--;
        } if (
    status == 0) {
            var 
    welcome "#e[AzuraStory] Gachapon (Exp)\r\n[#gHello there. I am the #dExperience Gachapon#k.\r\nWhat would you like to do ?#k]#n";
            var 
    choices = Array("Try it!""Explain further""Sorry, I have no money");
                for (var 
    0choices.lengthw++) {
                    
    welcome += "\r\n#L" "#" choices[w] + "#l";
                }
            
    cm.sendSimple(welcome);
        } else if (
    status == 1) {
            switch(
    selection) {
                case 
    0
                    
    cm.sendYesNo("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\nAre you sure that you wanna give it a try?\r\nYou wont be able to turn back after this.");
                    
    status++;
                    return;
                case 
    1:
                    var 
    info "#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n#d[This is the same Gachapon System that every server has, except that this doesnt gives you item but exp.\r\nThe rewarded Experience is fabulous and high!\r\nHmms. So, wanna try your luck?\r\nOh and you need to be lv50 or above and it requires you to have a Gachapon ticket to work.]#k";
                    var 
    choices = Array("Try it!""Leave");
                        for (var 
    0<  choices.lengthi++) {
                            
    info += "\r\n#L" "#" choices[i] + "#l";
                        }
                    
    cm.sendSimple(info);
                    return;
                case 
    2cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\nAlright then see you again soon.");
                    
    cm.dispose();
                    break;
            }
        } else if (
    status == 2) {
            if (
    selection == 0) {
                
    cm.sendYesNo("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\nAre you sure that you wanna give it a try?\r\nYou wont be able to turn back after this.");
            } else if (
    selection == 1) {
                
    cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\nAlright then see you again soon.");
                
    cm.dispose();
            }
        } else if (
    status == 3) {
            if (
    cm.getLevel() >= reqLevel) {
                if (
    cm.haveItem(reqItem1)) {
                    var 
    select "#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n[#dYou put your hand in your pocket, took out a Ticket and insert into the machine. After sometime, A strange sound came out from the machine. You were given a choice..#k]";
                    var 
    choice = Array("Look at what happened.""Leave.");
                        for (var 
    0choice.lengths++) {
                            
    select += "\r\n#L" "#" choice[s] + "#l";
                        }
                    
    cm.sendSimple(select);
                } else {
                    
    cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n[#dYou put your hand in your pocket and found out that you do not have any Tickets left. You have no choice but to turn back and leave.#k]");
                    
    cm.dispose();
                }
            } else {
                
    cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n[#dAfter some thinking, you decided to give it a shot but found out that your level isn't enough to try it and was forced to turn back and leave.#k]");
                
    cm.dispose();
            }
        } else if (
    status == 4) {
            switch(
    selection) {
                case 
    0
                    
    cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n[#dAfter the noise is over, out of curiousity, you went nearer to it and look what has happened..#k]");
                    return;
                case 
    1
                    
    cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n[#dAfter the noise is over, you thought that the machine is spoilt. Forgetting the rewards and the wasted ticket, you decided to leave..#k]");
                    
    cm.dispose();
                    break;
            }
        } else if (
    status == 5) {  
            if (
    chances 30) {
                
    cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n[#dThe machine lighted up and you waited for awhile to see if there are any other reaction but it appears that nothing is happening. It looks like you're not in luck today..You turned back and left sadly..#k]");
                
    cm.gainItem(reqItem, -1);
                
    cm.dispose();
            } else {
                
    cm.sendOk("#e[AzuraStory] Gachapon (Exp) #n\r\n\r\n[#dThe machine lighted up and you waited for awhile to see if there are any other reaction. Suddenly, a bright flash appeared and you feel a strong energy moving around your body.\r\nCongratulations! You got the reward.\r\nYou turned back and left with joy.#k]");
                
    cm.gainExp(exp);
                
    cm.gainItem(reqItem, -1);
                
    cm.dispose();
            }
        
        }
        }

    NX Seller :
    PHP Code:
    /**************************************** 
     *@author XotiCraze
     *NX Seller
     *****************************************/ 

    var status 0;
    var 
    price 1000;

    function 
    start() {
        
    status = -1;
        
    action(100);
    }

    function 
    action(modetypeselection
    {
        if (
    mode == -1) {
            
    cm.dispose();
        } else if (
    mode == 0) {
            if (
    status >= 0) {
                
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#dGoodBye. Come again for more NX Points (: Hope to see you soon.#k]#n");
                
    cm.dispose();
                return;
            }
        } else if (
    mode == 1) {
            
    status++;
        } else {
            
    status--;
        } if (
    status == 0) {
            var 
    welcome "#e[AzuraStory] NXSeller\r\n\r\n[#dHello there. I am the NX Seller which is also called the Cash Seller.#k]#n\r\n";
            var 
    choices = Array("Purchase NX.""Explain more.""Leave");
                for (var 
    0choices.lengthw++) {
                    
    welcome += "\r\n#L" "#" choices[w] + "#l";
                }
            
    simple(welcome);
        } else if (
    status == 1) {
            switch(
    selection) {
                case 
    0:
                    var 
    confirm "#e[AzuraStory] NXSeller\r\n\r\n[#dSo you've chosen to purchase some NX. You can still change your mind now. Please think about it.#k]#n";
                    var 
    choice = Array("Purchase NX.""Leave");
                        for (var 
    0choice.lengthc++) {
                            
    confirm += "\r\n#L" "#" choice[c] + "#l";
                        }
                    
    simple(confirm);
                    
    status++;
                    break;
                case 
    1
                    var 
    info "#e[AzuraStory] NXSeller\r\n\r\n[#dI am the NX Seller. NX can be named as Cash or CS Points too. I sells NX for people who wants to dress up their characters nicely or buy other Cash Items or also called as NX Item. Of course! They come in a bundle offers. There are 3 different bundles for you to choose.\r\nSo, what do you want to do?#k]#n";
                    var 
    choice = Array("Purchase NX.""Leave");
                        for (var 
    0choice.lengthi++) {
                            
    info += "\r\n#L" "#" choice[i] + "#l";
                        }
                    
    simple(info);
                    return;
                case 
    2:
                    
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#dAlright then. Hope to see you again!#k]#n");
                    
    cm.dispose();
                    break;
            }
        } else if (
    status == 2) {
            switch(
    selection) {
                case 
    0:
                    var 
    confirm "#e[AzuraStory] NXSeller\r\n\r\n[#dSo you've chosen to purchase some NX. You can still change your mind now. Please think about it.#k]#n";
                    var 
    choice = Array("Purchase NX.""Leave");
                        for (var 
    0choice.lengthc++) {
                            
    confirm += "\r\n#L" "#" choice[c] + "#l";
                        }
                    
    simple(confirm);
                    
    selection 0;
                    return;
                case 
    1:
                    
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#dAlright then. Hope to see you again!#k]#n");
                    
    cm.dispose();
                    break;
            }
        } else if (
    status == 3) {
            switch(
    selection) {
                case 
    0:
                    var 
    purchase "#e[AzuraStory] NXSeller\r\n\r\n[#dThis are the 3 bundles package offer that is available for you.Please select one.#k]#n";
                    var 
    choices = Array("[1k NX for 1M Mesos] Special Package""[10k NX for 10M Mesos] Special Package""[30k NX for 30M Mesos] Special Package]""Leave");
                        for (var 
    0choices.lengthp++) {
                            
    purchase += "\r\n#L" "#" choices[p] + "#l";
                        }
                    
    simple(purchase);
                    return;
                case 
    1:
                    
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#dAlright then. Hope to see you again!#k]#n");
                    
    cm.dispose();
                    break;
            }
        } else if (
    status == 4) {
            switch(
    selection) {
                case 
    0:
                    if (
    cm.getMeso() > (price 1000)) {
                        
    cm.gainMeso(-(price 1000));
                        
    gainNX("1000");
                        
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#gYou stuff your hand into your pocket and took out some mesos from your pocket and paid the NPC.#k#d After a short while, in return, you've obtained" + (price 1000) + "NX!#k#gYou turned back and leave..#k]#n");
                        
    cm.dispose();
                        break; 
    // Ensuring[Double-Check];
                    
    } else {
                        
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#gYou stuff your hand into your pocket and found out that you do not have enough to purchase any NX.#k#d You have no choice but to turn back and leave..#k]#n");
                        
    cm.dispose();
                        break; 
    // Ensuring[Double-Check];
                    
    }
                    break;
                case 
    1:
                    if (
    cm.getMeso() > (price 10000)) {
                        
    cm.gainMeso(-(price 10000));
                        
    gainNX("10000");
                        
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#gYou stuff your hand into your pocket and took out some mesos from your pocket and paid the NPC.#k#d After a short while, in return, you've obtained" + (price 1000) + "NX!#k#gYou turned back and leave..#k]#n");
                        
    cm.dispose();
                        break; 
    // Ensuring[Double-Check];
                    
    } else {
                        
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#gYou stuff your hand into your pocket and found out that you do not have enough to purchase any NX.#k#d You have no choice but to turn back and leave..#k]#n");
                        
    cm.dispose();
                        break; 
    // Ensuring[Double-Check];
                    
    }
                    break;
                case 
    2:
                    if (
    cm.getMeso() > (price 30000)) {
                        
    cm.gainMeso(-(price 10000));
                        
    gainNX("30000");
                        
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#gYou stuff your hand into your pocket and took out some mesos from your pocket and paid the NPC.#k#d After a short while, in return, you've obtained" + (price 1000) + "NX!#k#gYou turned back and leave..#k]#n");
                        
    cm.dispose();
                        break; 
    // Ensuring[Double-Check];
                    
    } else {
                        
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#gYou stuff your hand into your pocket and found out that you do not have enough to purchase any NX.#k#d You have no choice but to turn back and leave..#k]#n");
                        
    cm.dispose();
                        break; 
    // Ensuring[Double-Check];
                    
    }
                    break;
                case 
    3:
                    
    cm.sendOk("#e[AzuraStory] NXSeller\r\n\r\n[#dAlright then. Hope to see you again!#k]#n");
                    
    cm.dispose();
                    break;
            }
        }
        }


            
    function 
    gainNX(amount) {
        
    cm.getPlayer().modifyCSPoints(0, (amount price));
    }

    function 
    simple(text) { // i dont know why i did this @_@
        
    cm.sendSimple(text);

    Also, I'm 'releasing' SactualizeMS Source done by Haiku01 which he told me to release it for him x_X.
    Heres the link:
    Svn : http://svn.assembla.com/svn/sactualizer12345
    Trac : http://trac.assembla.com/sactualizer12345/timeline

    To AzuraStory and SactualMS(Ex): If you wan't the scripts to be removed, please pm me.
    Once again, do not flame! Thanks.
    Goodbye RaGEZONE.


  2. #2
    Infraction Banned MrMysterious is offline
    MemberRank
    Dec 2008 Join Date
    In a treeLocation
    752Posts

    Re: [Release] Some NPCs [Non-GMS]

    OMGOMG PRO <3.
    you work so hard with these servers and you haven't even done 1 commit in xoticstory ><

    PS. PRO <3

  3. #3
    Account Upgraded | Title Enabled! Haiku01 is offline
    MemberRank
    Jul 2008 Join Date
    celtic.zapto.orgLocation
    437Posts

    Re: [Release] Some NPCs [Non-GMS]

    Hehe ^^. I do not mind about this at all.

  4. #4
    Infraction Banned XxOsirisxX is offline
    MemberRank
    Jul 2008 Join Date
    2,456Posts

    Re: [Release] Some NPCs [Non-GMS]

    Quote Originally Posted by MrMysterious View Post
    OMGOMG PRO <3.
    you work so hard with these servers and you haven't even done 1 commit in xoticstory ><

    PS. PRO <3
    ROLF!! He did =)

    Haiko:

    nvm, love ya <3

  5. #5
    Account Upgraded | Title Enabled! EspadaFung is offline
    MemberRank
    Jul 2008 Join Date
    Home, don't stalk meLocation
    1,030Posts

    Re: [Release] Some NPCs [Non-GMS]

    :)
    surprise that you release your source haiku.

  6. #6
    Shamowgna. findergm is offline
    MemberRank
    Jun 2008 Join Date
    660Posts

    Re: [Release] Some NPCs [Non-GMS]

    Godly. Better leech this first ;)

  7. #7
    Valued Member XotiCraze is offline
    MemberRank
    Dec 2008 Join Date
    104Posts

    Re: [Release] Some NPCs [Non-GMS]

    Quote Originally Posted by MrMysterious View Post
    OMGOMG PRO <3.
    you work so hard with these servers and you haven't even done 1 commit in xoticstory ><

    PS. PRO <3
    Hey i did ! I just forgot to do the bank thingy LOL .

    Quote Originally Posted by findergm View Post
    Godly. Better leech this first ;)

    Lol, this isn't godly o_o .

  8. #8
    Infraction Banned MrMysterious is offline
    MemberRank
    Dec 2008 Join Date
    In a treeLocation
    752Posts

    Re: [Release] Some NPCs [Non-GMS]

    Quote Originally Posted by XotiCraze View Post
    Lol, this isn't godly o_o .
    he means you're godly

  9. #9
    wackyracer#1337 wackyracer is offline
    MemberRank
    Jun 2008 Join Date
    1,524Posts

    Re: [Release] Some NPCs [Non-GMS]

    Quote Originally Posted by MrMysterious View Post
    he means you're godly
    QFT.
    Consider these NPCs [LEECHED] by me :DDDD.



Advertisement