Jump to content
  • 0

modification in @warp/@go command


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

guys, can you help me modified my @warp/@go, if a player uses @warp/@go on a map that needs level 200+ level higher, if the player below 200, he/she can't use @warp/@go on that map.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

I think you can use bindatcmd (on script_commands.txt) to check if BaseLevel > 200 then useatcmd.

Link to comment
Share on other sites


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

try this..

find this inside the @go command inside this file

trunk/src/map/atcommand.c

nullpo_retr(-1, sd);

then add these...

if( sd->status.base_level < 200 ){
 clif_displaymessage(sd->fd,"Need level 200  to use.");
 return 0;
}

recompile...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

i already tried that emistry, but i need level 200 to use @go. what i mean is i want to put a special map that if a player is level 200 below, he / she can't enter.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

- script go_warp_atcommand -1,{
OnInit:
bindatcmd "go",strnpcinfo(3)+"::OnDo";
bindatcmd "warp",strnpcinfo(3)+"::OnDo";
end;
OnDo:
if( strcharinfo(3) == "prontera" && Baselevel < 200 && !Donate )
{
message strcharinfo(0),"Donate some money then you can use this command in here.";
end;
}
atcommand "@go "+.@atcmd_parameters$[0];
end;
}


BirV4sn.jpg Edited by goddameit
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...