Jump to content
  • 0

Add movement speed when in town only


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

hi guys.. this is my item script

{ if (strcharinfo(3) != "prontera" ){ unequip 13; message strcharinfo(0),"This item can only be used on prontera."; end; } else if (strcharinfo(3) != "prontera" ) { end; } else { bonus bSpeedAddRate,100; } },{},{}


i would like to ask for your help on how to disable the movement speed when i warp to other places.. the thing is when i equip the item on main town it increases my movespeed however when i use the warper and teleport to one of the fields or dungeon the increase movespeed is still activated unless i remove the item and re-equip it on another map, that's the only time the movespeed has no effect.

Edited by caspa
need to clarify my reason
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

rathena\db\re\item_noequip.txt

Put your item here.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

You will need to create a function that checks your equipped items and compare it to the map you're in

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   67
  • Joined:  09/05/12
  • Last Seen:  

37 minutes ago, caspa said:

hi guys.. this is my item script

 


{ if (strcharinfo(3) != "prontera" ){ unequip 13; message strcharinfo(0),"This item can only be used on prontera."; end; } else if (strcharinfo(3) != "prontera" ) { end; } else { bonus bSpeedAddRate,100; } },{},{}


i would like to ask for your help on how to disable the movement speed when i warp to other places.. the thing is when i equip the item on main town it increases my movespeed however when i use the warper and teleport to one of the fields or dungeon the increase movespeed is still activated unless i remove the item and re-equip it on another map, that's the only time the movespeed has no effect.

Make it just like this:

{ if(strcharinfo(3)== "prontera") bonus bSpeedAddRate,100; },{},{}

It can be used anywhere but the effect will work only in prontera.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

thank you for fast reply guys.. however it did not solve anything..

whenever i wear the item at prontera.. it gives me movespeed however when i warp to another map... still wearing the item the movespeed is still there.... it did not go away... unless i take off the item and re-equip it... thats the only time the movespeed goes away.....

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

The comments and idea of this topic might be helpful.

Link to comment
Share on other sites

  • 0

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

this npc script should work for you

OnPCStatCalcEvent:
	if (isequipped(5022)) {
		if (getmapflag(strcharinfo(3), mf_town)) {
			bonus bSpeedAddRate,100;
		}
	}
	end;

 

  • Upvote 1
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...