-
Posts
332 -
Joined
-
Last visited
-
Days Won
1
Community Answers
-
Dori's post in Excluding a certain class out of code was marked as the answer
Thanks for the reply Stolao, but the code didn't work.
This however worked:
sd->status.status_point = statp[sd->status.base_level] + ( sd->class_&JOBL_UPPER ? 52 : 0 ) + ( sd->class_&JOBL_THIRD && sd->class_&JOBL_BABY && (sd->class_ != MAPID_SUPER_BABY_E) ? 52 : 0 ); Thank you Corrosive for the help~
-
Dori's post in Help with Disguiser script was marked as the answer
Thanks, but I would like to use my script.
But may be I can learn a few things from your script....until someone helps with my question.
Edit: Nevermind, figured it.
-
Dori's post in Adding an item amount for this box was marked as the answer
I tried it out, but I keep getting the first item on the list. I don't get any of the other items.
Here is what I have:
function script rewardchest { setarray .@reward, 501,1, 60, 502,2, 40, 503,1, 40, 504,4, 30, 505,1, 20, 506,2, 10; .@size = getarraysize( .@reward ); for( set .@i, 2; .@i < .@size; .@i += 3 ) .@percent[.@i] += .@reward[.@i]; .@r = rand( .@percent[ .@size -1 ] +1 ); for( set .@i, 2; .@i < .@size; .@i += 3 ) if( .@percent[.@i] > .@r ) break; getitem .@reward[ .@i-2 ], .@reward[ .@i-1 ]; return; } EDIT: Nevermind, I found a better way of doing this using the item_package.txt Thanks anyways Capuche!
-
Dori's post in Baby Class HP/SP/STATS = Upper Class was marked as the answer
This works with all the 3rd job babies, but when I do this, the super baby's hp/sp differ from the Super novice. When I don't do this super baby and super novice have same amount of hp/sp.
here's an image showing the difference:
EDIT:
change:
(sd->class_&JOBL_UPPER) to
(sd->class_&JOBL_UPPER || (job_id >= JOB_BABY_RUNE && job_id <= JOB_BABY_MECHANIC2)) Thank you Cydh for all the help!
-
Dori's post in Flux- Paypal Credit Problem was marked as the answer
Yeah, there is an error. This is the error I have in there:
And in paypal.log I keep getting this error when making a donation:
My host is Asurahosting and I already asked them about it and they said they already have un-banned all IP's for the website node.
In my IPN history in paypal, all the donations that are made testing this are on "Retrying" status.
Edit: Problem solved.
-
Dori's post in A weird issue with Palettes ~_~ was marked as the answer
But isn't that diff for sharing one set of palettes with all classes?
I never used that option when diffing my client.
EDIT
ok so I figured out what happened. It was my clientinfo.xml.
I had my langtype set to 0 when I was testing my palettes.
But because of this Issue : http://rathena.org/board/topic/84693-remove-h-auto-displaying/
I changed my langtype to 1.
Now I need to figure out the correct langtype to use. I don't want that stupid help menu displaying every time I login with langtype 0 and I dont want my palettes messed up with langtype 1. Any advice?
-
Dori's post in Day/Night Mode Announcement was marked as the answer
FIXED IT For those who want the "Day/Night Mode" announcement disabled: in Pc.c find: int map_day_timer(int tid, unsigned int tick, int id, intptr_t data) { char tmp_soutput[1024]; if (data == 0 && battle_config.day_duration <= 0) // if we want a day return 0; if (!night_flag) return 0; //Already day. night_flag = 0; // 0=day, 1=night [Yor] map_foreachpc(pc_daynight_timer_sub); strcpy(tmp_soutput, (data == 0) ? msg_txt(NULL,502) : msg_txt(NULL,60)); // The day has arrived! intif_broadcast(tmp_soutput, strlen(tmp_soutput) + 1, 0); return 0; } /*================================================ * timer to do the night [Yor] * data: 0 = called by timer, 1 = gmcommand/script *------------------------------------------------*/ int map_night_timer(int tid, unsigned int tick, int id, intptr_t data) { char tmp_soutput[1024]; if (data == 0 && battle_config.night_duration <= 0) // if we want a night return 0; if (night_flag) return 0; //Already nigth. night_flag = 1; // 0=day, 1=night [Yor] map_foreachpc(pc_daynight_timer_sub); strcpy(tmp_soutput, (data == 0) ? msg_txt(NULL,503) : msg_txt(NULL,59)); // The night has fallen... intif_broadcast(tmp_soutput, strlen(tmp_soutput) + 1, 0); return 0; } Replace With: int map_day_timer(int tid, unsigned int tick, int id, intptr_t data) { // char tmp_soutput[1024]; if (data == 0 && battle_config.day_duration <= 0) // if we want a day return 0; if (!night_flag) return 0; //Already day. night_flag = 0; // 0=day, 1=night [Yor] map_foreachpc(pc_daynight_timer_sub); // strcpy(tmp_soutput, (data == 0) ? msg_txt(NULL,502) : msg_txt(NULL,60)); // The day has arrived! // intif_broadcast(tmp_soutput, strlen(tmp_soutput) + 1, 0); return 0; } /*================================================ * timer to do the night [Yor] * data: 0 = called by timer, 1 = gmcommand/script *------------------------------------------------*/ int map_night_timer(int tid, unsigned int tick, int id, intptr_t data) { // char tmp_soutput[1024]; if (data == 0 && battle_config.night_duration <= 0) // if we want a night return 0; if (night_flag) return 0; //Already nigth. night_flag = 1; // 0=day, 1=night [Yor] map_foreachpc(pc_daynight_timer_sub); // strcpy(tmp_soutput, (data == 0) ? msg_txt(NULL,503) : msg_txt(NULL,59)); // The night has fallen... // intif_broadcast(tmp_soutput, strlen(tmp_soutput) + 1, 0); return 0; }