Jump to content
AnnieRuru

movespeed mapflag

Recommended Posts

this is useful for certain events when you want your players to move at a fixed speed
eg: even if the player has agi up, mount peco or using Authoritative Badge,
all players movement speed are fixed at your desire value

 

Download: 1.3
plugin

 

Example:

prontera    mapflag    movespeed    150
	setmf_movespeed "prontera", 150;

all players at prontera will move at default speed
the value capped between 20~1000 

 

prontera    mapflag    movespeed    150    99
	setmf_movespeed "prontera", 150, 99;

all players except GM99 at prontera will move at default speed

 

	removemf_movespeed "prontera";

remove the movespeed mapflag in prontera, without using "@reloadscript"

 

	dispbottom getmf_movespeed( "prontera" ) +"";
	dispbottom getmf_movespeed( "prontera", 0 ) +"";
	dispbottom getmf_movespeed( "prontera", 1 ) +"";

first 2 lines return the movespeed value, 3rd line return the GM level bypass restriction
Note: since the minimum value is 20, if the mapflag is off, return 0

 

 

1.0 - plugin

1.1 - plugin
- I hook wrong function, should be map->flags_init

1.2 - plugin
- update to latest revision
- add GM level bypass restriction
- add *setmapflagmovespeed *removemapflagmovespeed *getmapflagmovespeed script command

1.3 - plugin
- change *setmapflagmovespeed into *setmf_movespeed ... and so on

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

why not create plugin?

 

In plugin possible all except adding new flag to getmapflag/setmapflag.

 

Share this post


Link to post
Share on other sites

In plugin possible all except adding new flag to getmapflag/setmapflag.

its possible now ?

erm ... yeah... nowadays my script use setmapflag ... no longer use the old <tab> <tab> <tab>

 

is there any example that I can refer on ?

 

because I saw this

https://github.com/HerculesWS/Hercules/pull/450

its still not done yet ?

Share this post


Link to post
Share on other sites

@@AnnieRuru plugin can introduce own map flags, but they cant be used in functions getmapflag/setmapflag.

You can see map flag in this example: https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/afk.c

here used map flag "noafk"

Share this post


Link to post
Share on other sites

Lol, so its cumbersome to use a plugin? 
In a nice scenario you should have all the source edits on plugins, so the changes wont collide on the updates.

Share this post


Link to post
Share on other sites

 

this is useful for certain events when you want your players to move at a fixed speed

eg: even if the player has agi up, mount peco or using Authoritative Badge,

all players movement speed are fixed at your desire value

 

Download:

plugin

 

Example:

prontera   mapflag   movespeed   150
all players at prontera will move at default speed

.

.

.

 

Archive

1.0

plugin

 

1.1

plugin

- I hook wrong function, should be map->flags_init

 

Any chances for rAthena version?

Share this post


Link to post
Share on other sites

Any chances for rAthena version?

erm ... $10 ? lol

btw I heard that you are considering open a new server, why not just open a Hercules server instead ?

Share this post


Link to post
Share on other sites

 

Any chances for rAthena version?

erm ... $10 ? lol

btw I heard that you are considering open a new server, why not just open a Hercules server instead ?

 

 

No problem, PM ME. first of all, the reason why i can't moved to Hercules, due to i have many heavy modifications on my server which is not compatible of Hercules i don't know. rAthena emulator has lots of bug to be honest. while Hercules has fully fixed emulator and complete packets.

I'm planning to move but i don't know yet @_@ does Hercules support fully client of 2014-10-22? and 2015-05-13b?

Share this post


Link to post
Share on other sites

i have many heavy modifications on my server which is not compatible of Hercules

I've heard this excuse many times

but isn't that patches also prevent you from upgrading rathena too ?

.

while Hercules has fully fixed emulator and complete packets.

honestly hercules is quite lag behind rathena since Ind gone

.

does Hercules support fully client of 2014-10-22? and 2015-05-13b?

no idea, I'm client noob and I am currently using 2014-01-15

Share this post


Link to post
Share on other sites

does Hercules support fully client of 2014-10-22? and 2015-05-13b?

yes, herc support those clients but really not recommended yet for live servers.

 

Although I myself uses the 2014-10-22 client, haven't encountered bug so far. and if there is, just need to report it to get support and if it take a while, could easily downgrade client dates to use.

 

Well @@AnnieRuru is right, after Ind left, there's so much gap between rathena and herc in content but I still use herc. well hopefully after the Christmas season, our devs will comeback to work lol

Share this post


Link to post
Share on other sites

I think right now the 20150513 client is stable enough, actually I have used this client for about 3 months for my server. After the fix of quest packets and equipment view ack packets, I did not experience any bugs.

 

In my opinion, Hercules has a lot of amazing features. But the developments for contents directly related to gameplay (skills, status calculation, mob ai) stopped for a long time, and tons of issues wait for resolving. This is the biggest con.

Edited by thor1009

Share this post


Link to post
Share on other sites

I think right now the 20150513 client is stable enough, actually I have used this client for about 3 months for my server. After the fix of quest packets and equipment view ack packets, I did not experience any bugs.

In my opinion, Hercules has a lot of amazing features. But the developments for contents directly related to gameplay (skills, status calculation, mob ai) stopped for a long time, and tons of issues wait for resolving. This is the biggest con.

Report any issues , if you feel they are bugged.

However for 2015-05, we don't support many of its feature, which will be coded soon I guess.

Share this post


Link to post
Share on other sites

 

 

@AnnieRuru

 

if you are accepting suggestions: add a simple config with a minimum gm lvl to bypass this, great work as always!

yeaah i agree to this.. and also please update this plugin to the latest revision of hercules... and also the fixaspd mapflag  :D  :D  :D

 

dastgir already fixed them here

Share this post


Link to post
Share on other sites

1.2 - plugin
- update to latest revision
- add GM level bypass restriction
- add *setmapflagmovespeed *removemapflagmovespeed *getmapflagmovespeed script command

Share this post


Link to post
Share on other sites

since some people has downloaded 1.2, has to move up a revision

1.3 - plugin
- change *setmapflagmovespeed into *setmf_movespeed ... and so on

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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