Problem now fixed! Thanks to both Nova and Angelmelody! I owe you guys one!
- Viewing Profile: Posts: msecastro
Community Stats
- Group Members
- Active Posts 7
- Profile Views 1748
- Member Title Newbie
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
User Tools
Friends
msecastro hasn't added any friends yet.
Latest Visitors
Posts I've Made
In Topic: If player has item, warp back to savepoint
19 September 2015 - 06:58 AM
In Topic: If player has item, warp back to savepoint
17 September 2015 - 04:49 PM
Huh weird, let's tone that down then.
prontera,158,180,4 script MapCheck 4_F_CAPEGIRL,{mes getmapflag(strcharinfo(3),mf_zone);close;}
If that won't work, maybe
prontera,158,180,4 script MapCheck 4_F_CAPEGIRL,{dispbottom getmapflag(strcharinfo(3),mf_zone);end;}
Sorry for the late reply, I had some problems with the internet.
An empty textbox appears on the first snippet. I may have not set the mapflag correctly.
Now, I'm having this on the dispbottom:
[Error]: script:conv_str: cannot convert to string, defaulting to ""[Debug]: Data: nothing (nil)[Debug]: Source (NPC): MapCheck at prontera (158,180)
In Topic: If player has item, warp back to savepoint
17 September 2015 - 03:44 PM
Haha I just went back to edit my post, sorry :]
Just to make sure, you've already set your custom map zones right? And they're loaded?
Haha, I just made something similar to what you've edited. Yes, I think so, I will be testing now and will get back to you in a few minutes for the results.
@Nova - I'm quite new to this but I'm quite a fast learner so it isn't disrespectful on your part.
Getting back, while running and talking the NPC I've made with your snippet, I am having these messages on my map-server:
[Error]: script:op_2: invalid data for operator C_ADD[Debug]: Data: C_ARG[Debug]: Data: string value="Mapflag: "[Debug]: Source (NPC): MapCheck at prontera (154,176)
In Topic: If player has item, warp back to savepoint
17 September 2015 - 03:23 PM
I'm not running Herc so I can't test for you, but check this line.
getmapflag(strcharinfo(3),mf_zone);If it returns something higher than 1 we should be able to do this easily.
Obviously test it on a zone you've marked as your custom zone.
Thank you, Nova!
How would I go about this?
Do I just:
- script testgetmapflag -1,{OnPCLoadMapEvent:getmapflag(strcharinfo(3),mf_zone);}prontera mapflag loadevent
..or am I misunderstanding something?
Thank you for your patience.
In Topic: If player has item, warp back to savepoint
17 September 2015 - 02:59 PM
I recommend you learn Map Zone DB ,its better than running a while loop
example, go to the bottom of map_zone_db.conf and add BEFORE the last ) the following:
,{ name: "Custom" disabled_skills: { SA_ABRACADABRA: "PLAYER" } mapflags: ( "noknockback", )}
now go to any npc script file and add this:
yourmapname<tab>mapflag<tab>zone<tab>Custom
Thank you for your reply, Angelmelody!
Yes, I am currently looking into Map Zone DB for a while now and have been making tests. I'm also looking at related scripts using it to have knowledge on how to use it on scripts.
- Viewing Profile: Posts: msecastro
- Privacy Policy
- Hercules Forum Rules ·