Jump to content
  • 0

gold room script help!


Question

Posted (edited)

Hi everyone,,,I decided to add a gold room yesterday and I found this script...The sad part is the PECOS didnt drop anything and there's an error in the script...anyone who can help me fix it?????


//===== eAthena Script =======================================
//= Treasure Room
//===== By: ==================================================
//= nostafu
//===== Current Version: =====================================
//= v.1
//===== Compatible With: =====================================
//= Any eAthena Version
//============================================================
//========== Treasure Room Settings ==========================
ordeal_2-1.gat mapflag noskill
ordeal_2-1.gat mapflag nosave SavePoint
ordeal_2-1.gat mapflag nomemo
ordeal_2-1.gat mapflag nobranch
ordeal_2-1.gat mapflag noexp
ordeal_2-1.gat mapflag nodrop
ordeal_2-1.gat mapflag nochat
ordeal_2-1.gat mapflag novending
ordeal_2-1.gat mapflag nowarp
ordeal_2-1.gat mapflag nowarpto
ordeal_2-1.gat mapflag noreturn
//ordeal_2-1.gat mapflag pvp
//ordeal_2-1.gat mapflag pvp_noguild
ordeal_2-1.gat mapflag noloot

//===========================================================
//=== Mobs
//===========================================================
- script trum_v1 -1,{

OnInit:
// Target Mobs
monster "ordeal_2-1",0,0,"Gold Mob",1369,150,"trum_v1::OnKill";
end;

OnKill:
getitem 7444,1;
monster "ordeal_2-1",0,0,"Gold Mob",1369,1,"trum_v1::OnKill";
}

//===========================================================
//=== Exit Warper
//===========================================================
ordeal_2-1,154,156,4 script Treasure Miner 826,{
mes "[Treasure Miner]";
mes "Would you like to go back to prontera?";
next;
menu "Yes",M_TELEPORT,"No",M_Bye;
close;

M_TELEPORT:
mes "[Treasure Miner]";
mes "Thank You for mining!!.";
next;
warp "prontera",155,180;
end;

M_Bye:
mes "[Treasure Miner]";
mes "Alright, Go get more Treasure Boxes~.";
close;

}

//===========================================================
//=== Warpers
//===========================================================
prontera,165,152,4 script Treasurer#prt::Treasurer 804,{
mes "[Treasurer]";
mes "Hi There, Would you like to go to the Treasure Room? You need 100,000z to go inside.";
next;
switch(select("Yes. Ahoy!:No")) {
case 1:
if (Zeny > 99999) {
mes "[Treasurer]";
mes "Alright I will now send you to the Treasure Room, Take Care!.";
next;
set Zeny,Zeny-100000;
warp "ordeal_2-1",156,155;
emotion 21;
close;
}
else {
mes "[Treasurer]";
mes "Sorry, But you don't have enough zeny.";
close;
}
case 2:
mes "[Treasurer]";
mes "Alright, No problem.";
close;
}
}


//===========================================================
//=== NPC Clones
//===========================================================
aldebaran,133,116,4 duplicate(Treasurer) Treasurer#alde 804
alberta,23,247,4 duplicate(Treasurer) Treasurer#alb 804
payon,151,182,4 duplicate(Treasurer) Treasurer#pay 804
geffen,115,74,4 duplicate(Treasurer) Treasurer#gef 804

post-8638-0-45372700-1354872158_thumb.png

Edited by miczster
Please use [CODEBOX] or Attachments for long contents.

9 answers to this question

Recommended Posts

Posted

@AnnieRuru THX for testing the script in your test server...It helped me confirm its not the script itself thats the problem.

@Joseph Thx dude,,,,your suggestion fixed my problem!! it was the OnKill part that's messing it up in my server..

SOLVED !!

Posted

How can I make the mob receive 1 damage at a time from this treasure room?

 

u may try spawn the mobs have high vit. and other else. haha adjust mob_db

 

 

How can I make the mob receive 1 damage at a time from this treasure room?

 

u may try spawn the mobs have high vit. and other else. haha adjust mob_db

 

Helped lots, thank you my liege!

 

healthydude

 

Posted

 

How can I make the mob receive 1 damage at a time from this treasure room?

 

u may try spawn the mobs have high vit. and other else. haha adjust mob_db

 

 

How can I make the mob receive 1 damage at a time from this treasure room?

 

u may try spawn the mobs have high vit. and other else. haha adjust mob_db

 

Helped lots, thank you my liege!

 

healthydude

 

 

 

waakakaka. its funny LOL :P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...