Jump to content
  • 0

Add movement speed when in town only


Question

Posted (edited)

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

6 answers to this question

Recommended Posts

  • 0
Posted
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.

  • 0
Posted

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

  • 0
Posted

this npc script should work for you

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

 

  • Upvote 1

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