[Release]EXP Gachapon - Gain some EXPz

Results 1 to 12 of 12
  1. #1
    Best Commu NA Cure is offline
    MemberRank
    Sep 2007 Join Date
    That way .. →Location
    1,247Posts

    [Release]EXP Gachapon - Gain some EXPz

    Release Name: Exp Gachapon
    Source: Titan
    Release Version: -
    Version: v55

    EXP Gachapon works similar to the normal gachapon, but it gives experience instead. You Can Get Negative Exp. As far as i know, this wasnt released yet for Titan.. So I took the time to release it. You can score a "Jackpot" and a "Demon Jackpot", Demon Jackpot gives -150000 exp, and the jackpot gives +150000 exp. Anyways enjoy.



    Heres the code:
    ---
    Base Code:

    Code:
    #include"NPCs.h"
    #include"NPCsScripts.h"
    #include"Player.h"
    void NPCsScripts::9110009(NPC* npc) { // Coded By Jordan
    Player* player = npc->getPlayer();
    int state = npc->getState();
    if (state == 0) {
    if(player->inv->getItemAmount(5220000) >= 1) {
    npc->addText("Im the EXP Gachapon! Comon, Give me a try!"); 
    npc->sendYesNo();
    } 
    else {
    npc->addText("You don't have any tickets.");
    npc->sendOK();
    }
    }
    elseif (state == 1) {
    if(npc->getSelected() == YES){ 
    npc->giveItem(5220000, -1);
    int random = (rand()% 151) + 1;
    if(random == 1){
    npc->addText("You have gained 4,200 EXP.");
    npc->giveExp(4200);
    npc->sendOK();
    }
    if(random == 2){
    npc->addText("You have gained 10,000 EXP.");
    npc->giveExp(10000);
    npc->sendOK();
    }
    if(random == 3){
    npc->addText("- Jackpot -");
    npc->addText("You have gained 150,000 EXP.");
    npc->giveExp(150000);
    }
    if(random == 4){
    npc->addText("You have gained 100 EXP.");
    npc->giveExp(100);
    npc->sendOK();
    }
    if(random == 5){
    npc->addText("You have gained 5,020 EXP.");
    npc->giveExp(5020);
    npc->sendOK();
    }
    if(random == 6){
    npc->addText("You have gained 17,000 EXP.");
    npc->giveExp(17000);
    npc->sendOK();
    }
    if(random == 7){
    npc->addText("You have gained 700 EXP.");
    npc->giveExp(700);
    npc->sendOK();
    }
    if(random == 8){
    npc->addText("You have gained 2,040 EXP.");
    npc->giveExp(2040);
    npc->sendOK();
    }
    if(random == 9){
    npc->addText("You have lost 10 EXP.");
    npc->giveExp(-10);
    npc->sendOK();
    }
    if(random == 10){
    npc->addText("You have lost 2060 EXP.");
    npc->giveExp(-2060);
    npc->sendOK();
    }
    if(random == 11){
    npc->addText("-Demon Jackpot -");
    npc->addText("You have lost 150,000 EXP.");
    npc->giveExp(-150000);
    npc->sendOK();
    }
    if(random == 12){
    npc->addText("You have lost 3,020 EXP.");
    npc->giveExp(-3020);
    npc->sendOK();
    }
    if(random == 13){
    npc->addText("You have lost 100 EXP.");
    npc->giveExp(-100);
    npc->sendOK();
    }
    if(random == 14){
    npc->addText("You have lost 300 EXP.");
    npc->giveExp(-300);
    npc->sendOK();
    }
    if(random == 15){
    npc->addText("You have lost 5,400 EXP.");
    npc->giveExp(-5400);
    npc->sendOK();
    }
    if(random == 16){
    npc->addText("You have gained 5,000 EXP.");
    npc->giveExp(5000);
    npc->sendOK();
    }
    if(random == 17){
    npc->addText("You have gained 7,000 EXP.");
    npc->giveExp(7000);
    npc->sendOK();
    }
    }
    npc->end();
    }
    else[SIZE=2] {
    npc->end();
    }
    }
    }
    ---

    NPC Registry Code:
    Code:
    case 9110009: npc_9110009(npc); break;
    staticvoid npc_9110009(NPC* npc);
    :::::
    Download:
    http://rapidshare.com/files/185490727/EXPGach.cpp.html

    ===
    Want to expand your Titan Server? Try These:
    GM-Blue v1
    Exp Gachapon
    !Supermod
    IDC-Sex NPC
    Last edited by Cure; 18-01-09 at 06:01 PM.


  2. #2
    Getting into Graphics Mages4ever is offline
    MemberRank
    Jun 2008 Join Date
    Somewhere =DLocation
    622Posts

    Re: [Rls]EXP Gachapon - Gain some EXPz

    Titan...
    Oh well.
    At least people are still developing stuff.
    This is actually useful. (If you use titan)

  3. #3
    Account Upgraded | Title Enabled! xChibi is offline
    MemberRank
    Jun 2008 Join Date
    Im youtubes... GodsAng3l! XDLocation
    279Posts

    Re: [Rls]EXP Gachapon - Gain some EXPz

    Yah this really is useful this guy is awesome GL with more scripts o:'
    I might try to do this with Odin ^_^

  4. #4
    Member shervintan is offline
    MemberRank
    Dec 2008 Join Date
    65Posts

    Re: [Rls]EXP Gachapon - Gain some EXPz

    Nice :D

  5. #5
    Account Upgraded | Title Enabled! renegod is offline
    MemberRank
    Aug 2005 Join Date
    SingaporeLocation
    630Posts

    Re: [Rls]EXP Gachapon - Gain some EXPz

    This is super easy to convert to odin.. Hope people are trying :P

    Not a bad release :)

    For people who want it on odin.. i just merely edited the gachapon code..

    Code:
    //EXP gach :X
    
    importPackage(net.sf.odinms.client);
    
    var status = 0;
    var expamount = Math.floor(Math.random()*50000+1*700); //change the exp shit here
    
    function start() {
    	status = -1;
    	action(1, 0, 0);
    }
    
    function action(mode, type, selection) {
    	if (mode == -1) {
    		cm.dispose();
    	} else {
    		if (status >= 2 && mode == 0) {
    			cm.sendOk("See you next time, when you try your luck here~!");
    			cm.dispose();
    			return;
    		}
    		if (mode == 1)
    			status++;
    		else
    			status--;
    		if (status == 0) {
    				cm.sendNext("I am the EXP gachapon, you can use a gachapon ticket likewise to obtain random EXPs from me :D");
    			}
    		else if (status == 1) {
    			if (cm.haveItem(5220000)) {
    			cm.sendYesNo("I see you have a ticket of mine, do you wish to use it?");
    			}
    			else if (!cm.haveItem(5220000)) {
    			cm.sendOk("You dont have any #bgachapon tickets#k.");
    			cm.dispose();
    			}
    		}
    		else if (status == 2) {
    			cm.gainItem(5220000, -1);
    			cm.gainExp(expamount);
    			cm.dispose();
    			}
    		}
    }

  6. #6
    Back to TitanMS casioa1234 is offline
    MemberRank
    Dec 2008 Join Date
    NetherlandsLocation
    338Posts

    Re: [Release]EXP Gachapon - Gain some EXPz

    nice release i gonna use it
    but how to instal it?
    do i only have to put it in the repack map?
    or do i have to change some thing?

  7. #7
    Account Upgraded | Title Enabled! viydude is offline
    MemberRank
    Jun 2008 Join Date
    235Posts

    Re: [Release]EXP Gachapon - Gain some EXPz

    Nice again!
    Keep up with the developing

  8. #8
    Novice flames950 is offline
    MemberRank
    Dec 2008 Join Date
    3Posts

    Re: [Release]EXP Gachapon - Gain some EXPz

    Code:
    EXPGach.cpp
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(5) : error C2589: 'constant' : illegal token on right side of '::'
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(5) : warning C4091: '' : ignored on left of 'void' when no variable is declared
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(5) : error C2143: syntax error : missing ';' before '::'
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(5) : error C2059: syntax error : '::'
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(5) : error C2143: syntax error : missing ';' before '{'
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(5) : error C2447: '{' : missing function header (old-style formal list?)
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(116) : error C2059: syntax error : '}'
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(116) : error C2143: syntax error : missing ';' before '}'
    c:\program files\ps\mursu repack 3.0\maplestoryserver\expgach.cpp(116) : error C2059: syntax error : '}'
    help?

  9. #9
    Account Upgraded | Title Enabled! LilAznKevin is offline
    MemberRank
    Oct 2007 Join Date
    225Posts

    Re: [Release]EXP Gachapon - Gain some EXPz

    I can convert this into an odin script if anyone would like it for an Odin server. :)
    oh. *self facepalm*
    Didnt read the posts. It's already been converted. My bad :D

  10. #10
    Back to TitanMS casioa1234 is offline
    MemberRank
    Dec 2008 Join Date
    NetherlandsLocation
    338Posts

    Re: [Release]EXP Gachapon - Gain some EXPz

    Quote Originally Posted by casioa1234 View Post
    nice release i gonna use it
    but how to instal it?
    do i only have to put it in the repack map?
    or do i have to change some thing?
    can any one help me pleas??

  11. #11
    Account Upgraded | Title Enabled! cihadpx68 is offline
    MemberRank
    Oct 2008 Join Date
    www.sixty8story.comLocation
    827Posts

    Re: [Release]EXP Gachapon - Gain some EXPz

    open notepad
    past the script in it
    and save it as <NPC ID of ur choice>.js
    and save it in repack>scripts>npc
    hope i helped u :)

    but does this work for v62?

  12. #12
    Valued Member bone12 is offline
    MemberRank
    Feb 2008 Join Date
    MaplestoryLocation
    130Posts

    Re: [Release]EXP Gachapon - Gain some EXPz

    hai i think that is need



Advertisement