Jump to content
  • 0
Zagreuz

[Request] Zeny Room + ideas

Question

this is the original code from M1dN1ght & Denner @ eAthena

Script original link : http://www.eathena.w...howtopic=237956

prontera,150,150,3 script Zeny Room 741,{

Mes "[Zeny Room]";
Mes "Hi "+((Sex) ? "Mr. " : "Ms. ")+StrCharInfo(0);
Mes "Do you wanna get in the Zeny Room?";
If (Select("Yes:No:Informations")==3)
{
 Next;
 Mes "[Zeny Room]";
 Mes "Commands avaiables in the Zeny Room:";
 Mes "	!q - Show you how much monsters is alive in the Zeny Room.";
 Mes "	!next - Show you how much time remainder to the Zeny Room's monsters relive.";
 Mes "	!exit - Warp you to your save point.";
 Mes "Obs: You only can use these comands if you are in the Zeny Room";
 Mes "	!go - Warp you to the Zeny Room, if you are alright there, warp you randomicly into it.";
 Mes "To use it, you need to send PM to 'npc:Zeny Room' with the command.";
 Mes "When you kill an Zeny Room's monster you got an amount of zeny between "+$zeny_room_z[0]+" and "+$zeny_room_z[1];
}
Close2;
If (@menu == 1)
{
 If ($zeny_room_open)
 {
  Warp $zeny_room_map$, 0, 0;
 } Else
 {
  Announce "The Zeny Room is closed!", bc_blue|bc_self;
 }
}
End;

OnInit:
If ($zeny_room_map$ == "")
{
 Set $zeny_room_map$, "morocc";
}
If ($zeny_room_mob == 0)
{
 Set $zeny_room_mob, 1002;
}
If ($zeny_room_amount == 0)
{
 Set $zeny_room_amount, 150;
}
If ($zeny_room_z[1] <= 0)
{
 SetArray $zeny_room_z, 0, 10000;
}
If ($zeny_room_dellay <= 0)
{
 Set $zeny_room_dellay, 10;
}
If ($zeny_room_msg$ == "")
{
 Set $zeny_room_msg$, "Zeny Room";
}
Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
Set [email protected]_next_wave, GetTimeTick(0) + $zeny_room_dellay*1000;
DelWaitingRoom;
WaitingRoom $zeny_room_msg$, 0;
OnMFAdd:
SetMapFlag $zeny_room_map$, mf_nomobloot;
SetMapFlag $zeny_room_map$, mf_nomemo;
SetMapFlag $zeny_room_map$, mf_noteleport;
SetMapFlag $zeny_room_map$, mf_nosave;
SetMapFlag $zeny_room_map$, mf_nobranch;
SetMapFlag $zeny_room_map$, mf_nowarp;
SetMapFlag $zeny_room_map$, mf_nogo;
SetMapFlag $zeny_room_map$, mf_nobaseexp;
SetMapFlag $zeny_room_map$, mf_nojobexp;
SetMapFlag $zeny_room_map$, mf_noreturn;
SetMapFlag $zeny_room_map$, mf_nowarpto;
End;

OnDelMF:
RemoveMapFlag $zeny_room_map$, mf_nomobloot;
RemoveMapFlag $zeny_room_map$, mf_nomemo;
RemoveMapFlag $zeny_room_map$, mf_noteleport;
RemoveMapFlag $zeny_room_map$, mf_nosave;
RemoveMapFlag $zeny_room_map$, mf_nobranch;
RemoveMapFlag $zeny_room_map$, mf_nowarp;
RemoveMapFlag $zeny_room_map$, mf_nogo;
RemoveMapFlag $zeny_room_map$, mf_nobaseexp;
RemoveMapFlag $zeny_room_map$, mf_nojobexp;
RemoveMapFlag $zeny_room_map$, mf_noreturn;
RemoveMapFlag $zeny_room_map$, mf_nowarpto;
End;

OnWhisperGlobal:
If (GetTimeTick(0) >= [email protected]_next_wave)
{
 KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
 DoNpcEvent "::OnInit";
}
GetMapXY([email protected]$, [email protected], [email protected], 0);
If (GetGMLevel() >= 60)
{
 If (Compare(@whispervar0$, "!map"))
 {
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  DoNpcEvent "::OnDelMF";
  MapWarp $zeny_room_map$, @whispervar1$, 0, 0;
  Set $zeny_room_map$, @whispervar1$;
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  DoNpcEvent "::OnMFAdd";
  DispBottom "Novo mapa: "+$zeny_room_map$;
  End;
 } Else If (Compare(@whispervar0$, "!open") || Compare(@whispervar0$, "!close"))
 {
  Set $zeny_room_open, Compare(@whispervar0$, "!open");
  DispBottom "Zeny Room "+(Compare(@whispervar0$, "!open") ? "aberta" : "fechada");
  If (Compare(@whispervar0$, "!open"))
  {
Announce "The Zeny Room now is openned!", 0;
DoNpcEvent "::OnInit";
  } Else
  {
KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
MapAnnounce $zeny_room_map$, "The Zeny Room is closed!", bc_map;
MapRespawnGuildID $zeny_room_map$, NULL, 2;
End;
  }
 } Else If (Compare(@whispervar0$, "!mob"))
 {
  Set [email protected], AtoI(@whispervar1$);
  If ( GetMonsterInfo([email protected], MOB_NAME) == "null")
  {
Message StrCharInfo(0), "Usage: !mob#id";
End;
  }
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  Set $zeny_room_mob, [email protected];
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  DispBottom "New monster: "+GetMonsterInfo([email protected], MOB_NAME);
  End;
 } Else If (Compare(@whispervar0$, "!amount"))
 {
  Set [email protected], AtoI(@whispervar1$);
  If ([email protected] <= 0)
  {
Message StrCharInfo(0), "Usage: !amount#new_amount";
End;
  }
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  Set $zeny_room_amount, [email protected];
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  DispBottom "New amount: "+$zeny_room_amount;
  End;
 } Else If (Compare(@whispervar0$, "!zeny"))
 {
  If (@whispervar1$ == "" || @whispervar2$ == "")
  {
Message StrCharInfo(0), "Usage: !zeny#min_amount#max_amount";
End;
  }
  If (AtoI(@whispervar1$) > AtoI(@whispervar2$))
  {
Message StrCharInfo(0), "The second value must be bigger than the first!";
End;
  }
  SetArray $zeny_room_z, AtoI(@whispervar1$), AtoI(@whispervar2$);
  DispBottom "Minimun amount: "+$zeny_room_z[0];
  DispBottom "Maximun amount: "+$zeny_room_z[1];
  End;
 } Else If (Compare(@whispervar0$, "!delay"))
 {
  If (@whispervar1$ == "")
  {
Message StrCharInfo(0), "Usage: !delay#new_delay.";
End;
  }
  Set $zeny_room_dellay, AtoI(@whispervar1$);
  DispBottom "Novo delay:"+$zeny_room_dellay;
  End;
 } Else If (Compare(@whispervar0$, "!chat"))
 {
  If (@whispervar1$ == "")
  {
Message StrCharInfo(0), "Usage: !chat#new_message";
End;
  }
  Set $zeny_room_msg$, @whispervar1$;
  DelWaitingRoom;
  WaitingRoom $zeny_room_msg$, 0;
  End;
 } Else If (Compare(@whispervar0$, "!reload"))
 {
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  Message StrCharInfo(0), "Zeny Room's monsters reloadeds!!";
  End;
 }
}
If (Compare(@whispervar0$, "!q"))
{
 If ([email protected]$ == $zeny_room_map$)
 {
  Message StrCharInfo(0), "Monster's amount: "+MobCount($zeny_room_map$, StrNpcInfo(0)+"::OnMobDied");
 } Else
 {
  Message StrCharInfo(0), "You need to be in the Zeny Room to use this command.";
 }
} Else If (Compare(@whispervar0$, "!next"))
{
 If ([email protected]$ == $zeny_room_map$)
 {
  Message StrCharInfo(0), "Remaining time to the monsters be reloaded: "+(([email protected]_next_wave- GetTimeTick(0))/ 1000)+" segundos";
 } Else
 {
  Message StrCharInfo(0), "You need to be in the Zeny Room to use this command.";
 }
} Else If (Compare(@whispervar0$, "!go"))
{
 If (GetMapFlag([email protected]$, mf_nowarp))
 {
  Message StrCharInfo(0), "You can't warp in this map!";
 }
 If ($zeny_room_open)
 {
  Message StrCharInfo(0), "Warped.";
  Warp $zeny_room_map$, 0, 0;
 }
 {
  Message StrCharInfo(0), "The Zeny Room is closed right now.";
 }
} Else If (Compare(@whispervar0$, "!exit"))
{
 If ([email protected]$ == $zeny_room_map$)
 {
  Message StrCharInfo(0), "Warped.";
  Warp "SavePoint", 0, 0;
 } Else
 {
  Message StrCharInfo(0), "You only can use this command if you are in the Zeny Room";
 }
} Else
{
 Message StrCharInfo(0), StrNpcInfo(0)+": Unknown command.";
}
End;

OnMobDied:
Set Zeny, Zeny + Rand($zeny_room_z[0], $zeny_room_z[1]);
If (GetTimeTick(0) >= [email protected]_next_wave || MobCount($zeny_room_map$, StrNpcInfo(0)+"::OnMobDied") == 0)
{
 KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
 DoNpcEvent "::OnInit";
}
End;
}

okay for the first thing, im requesting a code change from this script , or maybe a complete overhaul from this script

things that's to change / what are not / additional idea :

  • keep the random zeny gained ~ example 100k & 50k randomly gained.
  • keep the changeable map , the original script, i tried to change the map, but everytime i restart the map server still goes to morroc. ( maybe i have mistakes there. )
  • have instance for say each level have thier hardness on the mob and increased gained zeny still random , like :

level 1 - some mob , gained random 100k & 50k random

level 2 - some mob , lil bit harder to kill 200k & 150k random

and so on ~

  • keep the delay of each monster to spawn on the map, as in on 1mins, the mob killed and spawned back.

if can, try set the mob for high rate level 255 server :D

p/s : i hope Emistry can help :)

Edited by LordOfHeRO
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

something like this ?? :)

prontera,155,181,5 script Sample 718,{
mes "Go to Zeny Room ?";
mes "Higher Level Gain more Zeny.";
set @Room,select("Level 1:Level 2:Level 3:Level 4:Level 5");
warp .Map$[@Room],0,0;
end;
OnInit:
// Set Map Name for each 5 Maps
setarray .Map$[0],"guild_vs1","guild_vs2","guild_vs3","guild_vs4","guild_vs5";
// Monster ID for each 5 Maps
setarray .MobID[0],1007,1008,1009,1010,1011;
// Minimum Zeny to gain for each 5 Maps
setarray .MinZeny[0],1000,2000,3000,4000,5000;
// Maximum Zeny to gain for each 5 Maps
setarray .MaxZeny[0],10000,20000,30000,40000,50000;
for( set [email protected],0; [email protected] < getarraysize( .Map$ ); set [email protected],[email protected] + 1 ){
monster .Map$[[email protected]],0,0,"--ja--",.MobID[[email protected]],200,strnpcinfo(0)+"::OnMobKilled";
}
end;
OnMobKilled:
set Zeny,Zeny + rand( .MinZeny,.MaxZeny );
monster .Map$[@Room],0,0,"--ja--",.MobID[@Room],1,strnpcinfo(0)+"::OnMobKilled";
}

Edited by Emistry
Link to comment
Share on other sites

afraid to "BUMP" as per "Script Request Rules"

QUOTE @ Z3R0

Do Not Ask repeat or Multiple Times - Obviously we have seen your request, please don't spam.

huhu, anyone ? .

Link to comment
Share on other sites

this is the original code from M1dN1ght & Denner @ eAthena

Script original link : http://www.eathena.w...howtopic=237956

prontera,150,150,3 script Zeny Room 741,{

Mes "[Zeny Room]";
Mes "Hi "+((Sex) ? "Mr. " : "Ms. ")+StrCharInfo(0);
Mes "Do you wanna get in the Zeny Room?";
If (Select("Yes:No:Informations")==3)
{
 Next;
 Mes "[Zeny Room]";
 Mes "Commands avaiables in the Zeny Room:";
 Mes "	!q - Show you how much monsters is alive in the Zeny Room.";
 Mes "	!next - Show you how much time remainder to the Zeny Room's monsters relive.";
 Mes "	!exit - Warp you to your save point.";
 Mes "Obs: You only can use these comands if you are in the Zeny Room";
 Mes "	!go - Warp you to the Zeny Room, if you are alright there, warp you randomicly into it.";
 Mes "To use it, you need to send PM to 'npc:Zeny Room' with the command.";
 Mes "When you kill an Zeny Room's monster you got an amount of zeny between "+$zeny_room_z[0]+" and "+$zeny_room_z[1];
}
Close2;
If (@menu == 1)
{
 If ($zeny_room_open)
 {
  Warp $zeny_room_map$, 0, 0;
 } Else
 {
  Announce "The Zeny Room is closed!", bc_blue|bc_self;
 }
}
End;

OnInit:
If ($zeny_room_map$ == "")
{
 Set $zeny_room_map$, "morocc";
}
If ($zeny_room_mob == 0)
{
 Set $zeny_room_mob, 1002;
}
If ($zeny_room_amount == 0)
{
 Set $zeny_room_amount, 150;
}
If ($zeny_room_z[1] <= 0)
{
 SetArray $zeny_room_z, 0, 10000;
}
If ($zeny_room_dellay <= 0)
{
 Set $zeny_room_dellay, 10;
}
If ($zeny_room_msg$ == "")
{
 Set $zeny_room_msg$, "Zeny Room";
}
Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
Set [email protected]_next_wave, GetTimeTick(0) + $zeny_room_dellay*1000;
DelWaitingRoom;
WaitingRoom $zeny_room_msg$, 0;
OnMFAdd:
SetMapFlag $zeny_room_map$, mf_nomobloot;
SetMapFlag $zeny_room_map$, mf_nomemo;
SetMapFlag $zeny_room_map$, mf_noteleport;
SetMapFlag $zeny_room_map$, mf_nosave;
SetMapFlag $zeny_room_map$, mf_nobranch;
SetMapFlag $zeny_room_map$, mf_nowarp;
SetMapFlag $zeny_room_map$, mf_nogo;
SetMapFlag $zeny_room_map$, mf_nobaseexp;
SetMapFlag $zeny_room_map$, mf_nojobexp;
SetMapFlag $zeny_room_map$, mf_noreturn;
SetMapFlag $zeny_room_map$, mf_nowarpto;
End;

OnDelMF:
RemoveMapFlag $zeny_room_map$, mf_nomobloot;
RemoveMapFlag $zeny_room_map$, mf_nomemo;
RemoveMapFlag $zeny_room_map$, mf_noteleport;
RemoveMapFlag $zeny_room_map$, mf_nosave;
RemoveMapFlag $zeny_room_map$, mf_nobranch;
RemoveMapFlag $zeny_room_map$, mf_nowarp;
RemoveMapFlag $zeny_room_map$, mf_nogo;
RemoveMapFlag $zeny_room_map$, mf_nobaseexp;
RemoveMapFlag $zeny_room_map$, mf_nojobexp;
RemoveMapFlag $zeny_room_map$, mf_noreturn;
RemoveMapFlag $zeny_room_map$, mf_nowarpto;
End;

OnWhisperGlobal:
If (GetTimeTick(0) >= [email protected]_next_wave)
{
 KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
 DoNpcEvent "::OnInit";
}
GetMapXY([email protected]$, [email protected], [email protected], 0);
If (GetGMLevel() >= 60)
{
 If (Compare(@whispervar0$, "!map"))
 {
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  DoNpcEvent "::OnDelMF";
  MapWarp $zeny_room_map$, @whispervar1$, 0, 0;
  Set $zeny_room_map$, @whispervar1$;
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  DoNpcEvent "::OnMFAdd";
  DispBottom "Novo mapa: "+$zeny_room_map$;
  End;
 } Else If (Compare(@whispervar0$, "!open") || Compare(@whispervar0$, "!close"))
 {
  Set $zeny_room_open, Compare(@whispervar0$, "!open");
  DispBottom "Zeny Room "+(Compare(@whispervar0$, "!open") ? "aberta" : "fechada");
  If (Compare(@whispervar0$, "!open"))
  {
Announce "The Zeny Room now is openned!", 0;
DoNpcEvent "::OnInit";
  } Else
  {
KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
MapAnnounce $zeny_room_map$, "The Zeny Room is closed!", bc_map;
MapRespawnGuildID $zeny_room_map$, NULL, 2;
End;
  }
 } Else If (Compare(@whispervar0$, "!mob"))
 {
  Set [email protected], AtoI(@whispervar1$);
  If ( GetMonsterInfo([email protected], MOB_NAME) == "null")
  {
Message StrCharInfo(0), "Usage: !mob#id";
End;
  }
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  Set $zeny_room_mob, [email protected];
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  DispBottom "New monster: "+GetMonsterInfo([email protected], MOB_NAME);
  End;
 } Else If (Compare(@whispervar0$, "!amount"))
 {
  Set [email protected], AtoI(@whispervar1$);
  If ([email protected] <= 0)
  {
Message StrCharInfo(0), "Usage: !amount#new_amount";
End;
  }
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  Set $zeny_room_amount, [email protected];
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  DispBottom "New amount: "+$zeny_room_amount;
  End;
 } Else If (Compare(@whispervar0$, "!zeny"))
 {
  If (@whispervar1$ == "" || @whispervar2$ == "")
  {
Message StrCharInfo(0), "Usage: !zeny#min_amount#max_amount";
End;
  }
  If (AtoI(@whispervar1$) > AtoI(@whispervar2$))
  {
Message StrCharInfo(0), "The second value must be bigger than the first!";
End;
  }
  SetArray $zeny_room_z, AtoI(@whispervar1$), AtoI(@whispervar2$);
  DispBottom "Minimun amount: "+$zeny_room_z[0];
  DispBottom "Maximun amount: "+$zeny_room_z[1];
  End;
 } Else If (Compare(@whispervar0$, "!delay"))
 {
  If (@whispervar1$ == "")
  {
Message StrCharInfo(0), "Usage: !delay#new_delay.";
End;
  }
  Set $zeny_room_dellay, AtoI(@whispervar1$);
  DispBottom "Novo delay:"+$zeny_room_dellay;
  End;
 } Else If (Compare(@whispervar0$, "!chat"))
 {
  If (@whispervar1$ == "")
  {
Message StrCharInfo(0), "Usage: !chat#new_message";
End;
  }
  Set $zeny_room_msg$, @whispervar1$;
  DelWaitingRoom;
  WaitingRoom $zeny_room_msg$, 0;
  End;
 } Else If (Compare(@whispervar0$, "!reload"))
 {
  KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
  Monster $zeny_room_map$, 0, 0, GetMonsterInfo($zeny_room_mob, MOB_NAME) , $zeny_room_mob, $zeny_room_amount, StrNpcInfo(0)+"::OnMobDied";
  Message StrCharInfo(0), "Zeny Room's monsters reloadeds!!";
  End;
 }
}
If (Compare(@whispervar0$, "!q"))
{
 If ([email protected]$ == $zeny_room_map$)
 {
  Message StrCharInfo(0), "Monster's amount: "+MobCount($zeny_room_map$, StrNpcInfo(0)+"::OnMobDied");
 } Else
 {
  Message StrCharInfo(0), "You need to be in the Zeny Room to use this command.";
 }
} Else If (Compare(@whispervar0$, "!next"))
{
 If ([email protected]$ == $zeny_room_map$)
 {
  Message StrCharInfo(0), "Remaining time to the monsters be reloaded: "+(([email protected]_next_wave- GetTimeTick(0))/ 1000)+" segundos";
 } Else
 {
  Message StrCharInfo(0), "You need to be in the Zeny Room to use this command.";
 }
} Else If (Compare(@whispervar0$, "!go"))
{
 If (GetMapFlag([email protected]$, mf_nowarp))
 {
  Message StrCharInfo(0), "You can't warp in this map!";
 }
 If ($zeny_room_open)
 {
  Message StrCharInfo(0), "Warped.";
  Warp $zeny_room_map$, 0, 0;
 }
 {
  Message StrCharInfo(0), "The Zeny Room is closed right now.";
 }
} Else If (Compare(@whispervar0$, "!exit"))
{
 If ([email protected]$ == $zeny_room_map$)
 {
  Message StrCharInfo(0), "Warped.";
  Warp "SavePoint", 0, 0;
 } Else
 {
  Message StrCharInfo(0), "You only can use this command if you are in the Zeny Room";
 }
} Else
{
 Message StrCharInfo(0), StrNpcInfo(0)+": Unknown command.";
}
End;

OnMobDied:
Set Zeny, Zeny + Rand($zeny_room_z[0], $zeny_room_z[1]);
If (GetTimeTick(0) >= [email protected]_next_wave || MobCount($zeny_room_map$, StrNpcInfo(0)+"::OnMobDied") == 0)
{
 KillMonster $zeny_room_map$, StrNpcInfo(0)+"::OnMobDied";
 DoNpcEvent "::OnInit";
}
End;
}

okay for the first thing, im requesting a code change from this script , or maybe a complete overhaul from this script

things that's to change / what are not / additional idea :

  • keep the random zeny gained ~ example 100k & 50k randomly gained.
  • keep the changeable map , the original script, i tried to change the map, but everytime i restart the map server still goes to morroc. ( maybe i have mistakes there. )
  • have instance for say each level have thier hardness on the mob and increased gained zeny still random , like :

level 1 - some mob , gained random 100k & 50k random

level 2 - some mob , lil bit harder to kill 200k & 150k random

and so on ~

  • keep the delay of each monster to spawn on the map, as in on 1mins, the mob killed and spawned back.

if can, try set the mob for high rate level 255 server :)

p/s : i hope Emistry can help :(

While I can't help you about the instance thingy, except making/using an extra map for it, the other things are easy.

Look at this:

OnInit:
If ($zeny_room_map$ == "")
{
 Set $zeny_room_map$, "morocc";
}
If ($zeny_room_mob == 0)
{
 Set $zeny_room_mob, 1002;
}
If ($zeny_room_amount == 0)
{
 Set $zeny_room_amount, 150;
}
If ($zeny_room_z[1] <= 0)
{
 SetArray $zeny_room_z, 0, 10000;
}

$zeny_room_map$ = Change the map here.

$zeny_room_mob,1002; = Here is the Mob ID you want.

$zeny_room_amount, 150; == Mob Spawn Quantity

$zeny_room_z, 0, 10000; == Zeny Amounts > 0 = Min, 10k Max

Change, in your example, 0 into 50k and the 10000 into 100000

$zeny_room_dellay, 10; == Mob Spawn Delay in Seconds

So for 1 min exchange the "10" with a "60" ^^

Regards,

Chris

Link to comment
Share on other sites

well, thanks for the simple explaination, basically the changes of those code are already made, but confusing me when i only chage at the $zeny_room_map$, "mora" but still the script still going to morroc, even with map restart :(

for the instances , well maybe other codes can help with it or maybe . . . rebuild the whole code to be more simplified , probably removing the 2 choices of setting the map/zeny/mob/etc to be hardcoded ( theres no need to set those in-game ) :)

Link to comment
Share on other sites

wow, that was quite simple :) i'll test it A.S.A.P and give the results :)

//results ~

is there any config that you can declare the mob quantity that it spawn, and also, can you declare that every room cannot make any skills, only normal attacks

and , im thinking about making "mora" as the zeny room, but can you instances the "mora" map ? . so we would not use the guild_vs's map :P

have errors on map server

[Warning]: Unexpected type for argument 1. Expected string.
[Debug]: Data: variable name='.Map' index=1
[Debug]: Function: warp
[Debug]: Source (NPC): Zeny Room at prontera (142,169)
[Debug]: mapindex_name2id: Map "0" not found in index list!
[Debug]: pc_setpos: Passed mapindex(0) is invalid!
[Error]: buildin_warp: moving player 'LordOfHeRO' to "0",0,0 failed.
[Debug]: Source (NPC): Zeny Room at prontera (142,169)

Edited by LordOfHeRO
Link to comment
Share on other sites

the error come from a typo mistake..

change this

warp .Map$[@Room],0,0;

into this

warp .Map$[@Room],0,0;

​ declare the mob quantity that it spawn

change the Number 200..

monster .Map$[[email protected]],0,0,"--ja--",.MobID[[email protected]],200,strnpcinfo(0)+"::OnMobKilled";

can you declare that every room cannot make any skills, only normal attacks

mapname	mapflag   noskill

​ "mora" map ? . so we would not use the guild_vs's map

setarray .Map$[0],"mora",guild_vs5"......etc......

Edited by Emistry
Link to comment
Share on other sites

can you instance the maps , i mean all the 5 maps are mora , then when changing , how can i make each level have thier mob difficulties , as in lvl 1 till level 3 still can solo , starting from level 4 and 5 , they have to party to kill the mob , so will the script be changed wholely ? . as in for mob they have thier own settings .

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.