Jump to content
  • 0

make monster drop gold only


madtoyz

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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.
Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

cant change at here ?

//-------- Spawn Monster --------//
guild_vs1,0,0,0,0 monster Golden Dokebi 1110,1000,0,0,0

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can just edit the trunk/db/re/mob_db.txt

or

add this part inside your gold manager...

OnMobKilled:
getitem 969,1;
end;

and use this..

guild_vs1,0,0,0,0 monster Golden Dokebi 1110,1000,0,0,"GOLDMANAGERNAME::OnMobKilled"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

getitem still cannot use.

but the error already fix

Edited by madtoyz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

guild_vs1,0,0,0,0 monster Golden Dokebi 1110,1000,0,0,0"Gold Room Manager::OnMobKilled"

You just did a typo, see the red bolded 0 above.

Also, don't forget the proper tabulations.

guild_vs1,0,0,0,0<tab>monster<tab>Golden Dokebi<tab>1110,1000,0,0,"Gold Room Manager::OnMobKilled"

for more information, you can always check the wiki page.

http://rathena.org/wiki/Permanent_Monster_Spawn

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

// Mob Spawn
guild_vs1,0,0,0,0 monster Golden Dokebi 1110,1000,0,0,0,"Gold Room Manager::OnMobKilled"

already try but still like this

onmobkilled-1.jpg

screenRENZORAGNAROK000-2.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

You can't use @killmonster on mobs with event labels.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...