Jump to content
  • 0

make monster drop gold only


Question

Posted (edited)

how to do the Golden Dokebi drop gold only ?

prontera,167,178,3 script Gold Room Manager 965,{
mes "[ Gold Room Manager ]";
//mes "Hello, ";
//mes "How may i serve for you ?";
mes "I can warp you to the gold room.";
//mes "Would you like to go there try to get some gold ?";
//mes "You could be get rich if you lucky enough.";
next;
switch(select("Okay.:Not now.")) {
Case 1:
mes "[Gold Room Manager]";
//mes "So you have decide to go there.";
//mes "A wise decision.";
mes "You'll be there quickly. c;";
next;
mes "[ Gold Room Manager ]";
mes "Enjoy.";
close2;
warp "guild_vs1",50,50;
//OnInit:
//waitingroom "Gold Room Warper",0;
//end;
Case 2:
mes "[Gold Room Manager]";
//mes "Owh....";
//mes "Okay ;D";
//mes "It is all up to you.";
mes "Come back to me if you've changed your mind.";
close;
}
}
//-------- Spawn Monster --------//
guild_vs1,0,0,0,0 monster Golden Dokebi 1110,1000,0,0,0
//The Exit to Prontera
guild_vs1,49,49,5 script Exit 902,{
warp "prontera" ,155,181;
OnInit:
waitingroom "Prontera",0,0;
end;
}

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

13 answers to this question

Recommended Posts

Posted

prontera,167,178,3 script Gold Room Manager 965,{
mes "[ Gold Room Manager ]";
//mes "Hello, ";
//mes "How may i serve for you ?";
mes "I can warp you to the gold room.";
//mes "Would you like to go there try to get some gold ?";
//mes "You could be get rich if you lucky enough.";
next;
switch(select("Okay.:Not now.")) {
Case 1:
mes "[Gold Room Manager]"; 
//mes "So you have decide to go there.";
//mes "A wise decision."; 
mes "You'll be there quickly. c;";
next;
mes "[ Gold Room Manager ]"; 
mes "Enjoy.";
close2; 
warp "guild_vs1",50,50; 
//OnInit:
//waitingroom "Gold Room Warper",0;
//end;
Case 2:
mes "[Gold Room Manager]"; 
//mes "Owh....";
//mes "Okay ;D";
//mes "It is all up to you.";
mes "Come back to me if you've changed your mind.";
close;
}
}

//-------- Spawn Monster --------//
guild_vs1,0,0,0,0 monster Golden Dokebi 1110,1000,0,0,0"GOLDMANAGERNAME::OnMobKilled"
OnMobKilled:
getitem 969,10;
end;
}

//The Exit to Prontera

guild_vs1,49,49,5 script Exit 902,{
warp "prontera" ,155,181;

OnInit:
waitingroom "Prontera",0,0;
end;
}

onmobkilled.jpg

Posted (edited)

You misunderstood how NPC::Label works. Try this:

prontera,167,178,3 script Gold Room Manager 965,{
mes "[ Gold Room Manager ]";
mes "I can warp you to the gold room.";
next;
if (select("Okay.:Not now.") == 2) {
 mes "[Gold Room Manager]";
 mes "Come back to me if you've changed your mind.";
 close;
}
mes "[Gold Room Manager]";
mes "You'll be there quickly. c;";
next;
mes "[ Gold Room Manager ]";
mes "Enjoy.";
close2;
warp "guild_vs1",50,50;
end;
OnMobKilled:
getitem 969,10;
end;
}
// Mob Spawn
guild_vs1,0,0,0,0 monster Golden Dokebi 1110,1000,0,0,0"Gold Room Manager::OnMobKilled"
// Exit
guild_vs1,49,49,5 script Exit 902,{
warp "prontera" ,155,181;
end;
OnInit:
waitingroom "Prontera",0,0;
end;
}

Here is link for proper tabbed script: http://www.heypasteit.com/clip/0J4X (Codebox somehow merging tab into space)

Edited by darristan
Posted

Change the mob_db entry for Dokebi to just drop the Item Gold.

1110,DOKEBI,Dokebi,Dokebi,68,2820,1,675,759,1,317,347,85,20,52,56,35,20,60,25,10,12,0,6,27,0x191,250,1156,456,384,0,0,0,0,0,0,0,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,4098,1

Posted

Change the mob_db entry for Dokebi to just drop the Item Gold.

1110,DOKEBI,Dokebi,Dokebi,68,2820,1,675,759,1,317,347,85,20,52,56,35,20,60,25,10,12,0,6,27,0x191,250,1156,456,384,0,0,0,0,0,0,0,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,4098,1

so thats mean change the mob_db and no need to put OnMobKilled...

thanks

Posted

Change the mob_db entry for Dokebi to just drop the Item Gold.

1110,DOKEBI,Dokebi,Dokebi,68,2820,1,675,759,1,317,347,85,20,52,56,35,20,60,25,10,12,0,6,27,0x191,250,1156,456,384,0,0,0,0,0,0,0,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,4098,1

so thats mean change the mob_db and no need to put OnMobKilled...

thanks

Yes,it means,there's no need to use that script. Just change the mob_db Entry for Dokebi and they'll drop 9 Gold every time :) .

Posted (edited)

whatstheprob.jpg

how to add custom monster ?

mob_db2

// Renzo Gold Room Monster
3000,DOKEBI,Dokebi,Dokebi,68,2820,1,675,759,1,317,347,85,20,52,56,35,20,60,25,10,12,0,6,27,0x191,250,1156,456,384,0,0,0,0,0,0,0,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,969,9000,4098,1

npc\custom

prontera,167,178,3 script Gold Room Manager 965,{
mes "[ Gold Room Manager ]";
mes "I can warp you to the gold room.";
next;
if (select("Okay.:Not now.") == 2) {
 mes "[Gold Room Manager]";
 mes "Come back to me if you've changed your mind.";
 close;
}
mes "[Gold Room Manager]";
mes "You'll be there quickly. c;";
next;
mes "[ Gold Room Manager ]";
mes "Enjoy.";
close2;
warp "guild_vs1",50,50;
end;
}
// Mob Spawn
guild_vs1,0,0,0,0 monster Golden Dokebi 3000,300,0,0,0
// Exit
guild_vs1,49,49,5 script Exit#1 790,{
warp "prontera",155,181;
end;
OnInit:
waitingroom "Prontera",0,0;
end;
}

solve.

Edited by madtoyz

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...