-
Content Count
21 -
Joined
-
Last visited
-
Days Won
2
Z3R0 last won the day on July 15 2017
Z3R0 had the most liked content!
About Z3R0
-
Rank
Member
- Birthday 09/27/1984
Contact Methods
-
Skype
seo.roman.lopez
Profile Information
-
Gender
Male
-
Location:
Austin, TX
-
Interests
NPC SCRIPTING
-
Github
SeoRoman
-
Emulator
Hercules
-
Nebraskka reacted to a post in a topic: Back from the Dead
-
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 ] -
Z3R0 started following Array manipulation functions
-
kairu reacted to a post in a topic: Back from the Dead
-
jTynne reacted to a post in a topic: Back from the Dead
-
Z3R0 reacted to a post in a topic: Back from the Dead
-
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
-
Z3R0 started following Back from the Dead
-
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 ^^
-
Z3R0 changed their profile photo
-
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 ()
-
mleo1 reacted to a post in a topic: Which rates do you prefer?
-
no do not set register_count inside the loop itself both things I mentioned go on the OnPCDieEvent
-
minx123 reacted to an answer to a question: koe give reward to all player when click exit npc
-
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... }