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




Reply With Quote![[Release]EXP Gachapon - Gain some EXPz](http://ragezone.com/hyper728.png)


