-
Content Count
21 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by Z3R0
-
function Array manipulation functions
Z3R0 commented on meko's file in Quest, Shops, Functions & Algorithms
Couldn't find a place to add bug report from here... so here it goes... array_push skips 0 values, where as setarray() does not I tested with the following script prontera,154,170,4 script TEST 98,{ setarray(.@one, 0, 1, 2, 3); dispbottom(getarraysize(.@one)); // 4 for(.@i = 0; .@i < getarraysize(.@one); .@i++) { dispbottom(.@one[.@i]); // Displays 0,1,2,3 array_push(.@two, .@i); // Pushes 0,1,2,3 to array .@two } dispbottom(getarraysize(.@two)); // 3 for(.@i = 0; .@i < getarraysize(.@two); .@i++) { dispbottom(.@two[.@i]); // Displays 1,2,3 // Skips 0 } } -
function Array manipulation functions
Z3R0 commented on meko's file in Quest, Shops, Functions & Algorithms
I would like to see an array_diff(.@array, .@array2).... something like... @array1[0] = 1, 2, 3; @array2[0] = 1, 2, 3, 4, 5, 6, 7, 8, 9; array_diff(@array1, @array2) = [ ] array_diff(@array2, @array1) = [ 4, 5, 6, 7, 8 ] First Array contains all items you WANT with any/all items from Second Array.... so in the first example with 1,2,3 it only checks against 1,2,3 existing in [1,2,3,4,5,6,7,8] Where as in the second example it checks [ 1,2,3,4,5,6,7,8 ] for any or all occurrences of [1,2,3] and returns the ones that don't match.. [4,5,6,7,8 ] -
It's been a couple of years and for my absence, I want to apologize to those that knew me. I unfortunately went completely MIA. A lot has happened in the last couple of years, and I figured I owed it to some of you for just taking off the way I did. For the past couple of years, I have been going through a custody battle with my ex wife and it finally came to a close about a year ago. Work has been strenuous and I haven't really been able to do anything. I am finally to a point where I have stability in my life and things are finally looking up rather than down. I know I probably left many of you hanging and wondering... Where did Z3R0 go? I didn't die, I didn't leave, and I definitely missed RO. I'm coming back to study, to mentor, to help and support. I hope that you guys can forgive me for bum rushing out of here like I did, but I have always thought about the RO Community. I miss all of you, and I am so glad to be back. Z3R0
-
Boo
- Show previous comments 1 more
-
Tis all good, I was pretty active in the scripting side of eA, rA, and Herc Just been a while ^^
-
Maybe try .register_count = 0; sleep 5001; killmonsterall .map$;
-
ah you have == 0 for getmapusers... that is wrong... when a player dies... he is still on the map... you have the first check for greater than 1... your next check has to be <= 1....
-
if ur doing it via npc... onpckillevent getpartymembers () for loop attachrid class ()
-
no do not set register_count inside the loop itself both things I mentioned go on the OnPCDieEvent
-
maybe so @@Mysterious but to me it's the journey not the destination
-
add killmonsterall to end of OnPCDieEvent and set .register_count to 0 so the while () no longer works
-
wouldn't this be a request not for support?
-
koe give reward to all player when click exit npc
Z3R0 replied to minx123's question in Script Support
It's quite simple actually if ($koegid) && getcharid(2) == $koegid) getitem etc... getitem etc... is your problem... IF statements without wrapping { } will only trigger on the NEXT command and anything afterwards is just a normal command... so players (non guildies) are getting every item EXCEPT the one directly below the IF statement... Wrap the entire getitem contents in { } if ($koegid && getcharid(2) == $koegid) { getitem etc... getitem etc... getitem etc... } -
Question... Are only 30 people able to accept the quest? first come, first serve? is there something the players must do in order to be allowed to accept the given quest? Can you please be a little more specific? This is very easily able to be done, however a little more information is necessary
-
1-5x anything else is ridiculous
-
Few things off the top of my head... .@category = select ( "Option 1", "Option 2", "Option 3" ) - 1; // Is setting the .@category to a ZERO based index... where .@category is 0 to 2 .@quest_size = getd( ".quest_id_"+.@category+"_size" ); // Is setting .@quest_size to .quest_id_(0-2)_size (0 doesn't exist...) There's probably more but that should be a start...
-
@@Rytech Yep! It's been a while, definitely already getting into the game... @@GmOcean Of course, I have been off and on with eAthena, rAthena, and now Hercules! It's great to be back in the Community once again ... I'm looking at making a new commands setup, if you're interested I have been doing a lot of webdev on the side, so I will probably start making it tonight
-
Yes 'em I remember Hahah okay good . We created a Plugin System here at Hercules (we only have this system) that pretty much allows people to create code without affecting the main source files (i.e. implement commands, functions): http://herc.ws/board/topic/549-introducing-hercules-plugin-manager/ Tell me more, I read a bit about it from the post... but is it a repository type system? can someone host a github of "plugins" and update via it ?
-
yes it's me mysterious the one and only.. good to see u again emistry... don't know what plug-ins are... I been outta the loop need someone to catch me up on things
-
Much appreciated man It's definitely good to be back... Can't wait to see what's changed and get back into the game! It's been a long time, but I have been told Herc is the new wave of the RO Future
-
Hey guys! Most of you probably don't know me, but I am happy to be back! Looking to help in NPC Scripting Support and hopefully come up with some new and improved concepts! I miss it!