-
Posts
569 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Petey Pablo
-
-
suggest ko lng kuha ka nlng ng VPS mo. wag mo na pagpilitan yang globe mo. limited lng ang player nyan dahil sa pinas walang magandang isp. Resulta nyan super laggy 50 - 60 players dna kaya nyan hahaha
-
wala ko makita na ganyan sa unit.c ko sir jaypee. gamit ko po revision 14986.
-
src/map/pc.h
int invincible_timer; unsigned int canlog_tick; unsigned int canuseitem_tick; // [skotlex] + unsigned int warpgodelay_tick; unsigned int canusecashfood_tick; unsigned int canequip_tick; // [inkfish] unsigned int cantalk_tick; unsigned int cansendmail_tick; // [Mail System Flood Protection] unsigned int ks_floodprotect_tick; // [Kill Steal Protection]
src/map/pc.c
sd->canuseitem_tick = tick; + sd->warpgodelay_tick = tick; sd->canusecashfood_tick = tick; sd->canequip_tick = tick; sd->cantalk_tick = tick; sd->cansendmail_tick = tick;
src/map/pc.c
/*========================================== * Invoked when a player has received damage *------------------------------------------*/ void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int hp, unsigned int sp) { + unsigned int tick = gettick(); + int warpgodelaycd = 10000; //This is the delay in milliseconds you can set what ever delay you want + sd->warpgodelay_tick = tick+warpgodelaycd; //This is the timer if (sp) clif_updatestatus(sd,SP_SP); if (hp) clif_updatestatus(sd,SP_HP); else return;
src/map/atcommand.c
/*========================================== * @rura, @warp, @mapmove *------------------------------------------*/ ACMD_FUNC(mapmove) { + unsigned int tick = gettick(); char map_name[MAP_NAME_LENGTH_EXT]; unsigned short mapindex; short x = 0, y = 0; int m = -1; nullpo_retr(-1, sd); memset(map_name, '\0', sizeof(map_name)); if (!message || !*message || (sscanf(message, "%15s %hd %hd", map_name, &x, &y) < 3 && sscanf(message, "%15[^,],%hd,%hd", map_name, &x, &y) < 1)) { clif_displaymessage(fd, "Please, enter a map (usage: @warp/@rura/@mapmove <mapname> <x> <y>)."); return -1; } + if(DIFF_TICK(sd->warpgodelay_tick,tick)>0) { //This is for computing the delay if the cooldown or delay is not yet finish restrict using @warp + clif_displaymessage(fd,"There is a 10 seconds delay in using @warp command"); return 0; }
/*========================================== * @go [city_number or city_name] - Updated by Harbin *------------------------------------------*/ ACMD_FUNC(go) { + unsigned int tick = gettick(); int i; int town; char map_name[MAP_NAME_LENGTH]; int m; const struct { char map[MAP_NAME_LENGTH]; int x, y; } data[] = { { MAP_PRONTERA, 156, 191 }, // 0=Prontera { MAP_MORROC, 156, 93 }, // 1=Morroc { MAP_GEFFEN, 119, 59 }, // 2=Geffen { MAP_PAYON, 162, 233 }, // 3=Payon { MAP_ALBERTA, 192, 147 }, // 4=Alberta { MAP_IZLUDE, 128, 114 }, // 5=Izlude { MAP_ALDEBARAN, 140, 131 }, // 6=Al de Baran { MAP_LUTIE, 147, 134 }, // 7=Lutie { MAP_COMODO, 209, 143 }, // 8=Comodo { MAP_YUNO, 157, 51 }, // 9=Yuno { MAP_AMATSU, 198, 84 }, // 10=Amatsu { MAP_GONRYUN, 160, 120 }, // 11=Gonryun { MAP_UMBALA, 89, 157 }, // 12=Umbala { MAP_NIFLHEIM, 21, 153 }, // 13=Niflheim { MAP_LOUYANG, 217, 40 }, // 14=Louyang { MAP_NOVICE, 53, 111 }, // 15=Training Grounds { MAP_JAIL, 23, 61 }, // 16=Prison { MAP_JAWAII, 249, 127 }, // 17=Jawaii { MAP_AYOTHAYA, 151, 117 }, // 18=Ayothaya { MAP_EINBROCH, 64, 200 }, // 19=Einbroch { MAP_LIGHTHALZEN, 158, 92 }, // 20=Lighthalzen { MAP_EINBECH, 70, 95 }, // 21=Einbech { MAP_HUGEL, 96, 145 }, // 22=Hugel { MAP_RACHEL, 130, 110 }, // 23=Rachel { MAP_VEINS, 216, 123 }, // 24=Veins { MAP_MOSCOVIA, 223, 184 }, // 25=Moscovia { MAP_MELLINA, 86, 32 }, // 26=Mellina }; nullpo_retr(-1, sd); +if(DIFF_TICK(sd->warpgodelay_tick,tick)>0) { //This is for computing the delay if the cooldown or delay is not yet finish restrict using @go + clif_displaymessage(fd,"There is a 10 seconds delay in using @go command"); return 0; }
ung may mga (+) po add ko yan.
-
bkt kpag nag skill may delay dn na 10 seconds? salamat sa tutulong po.
Rathena Wiki - http://rathena.org/wiki/@go_delay_when_hit
This source snippet is for putting a delay in @go when a player receives a damage.
open src/map/pc.h
- find:unsigned int canuseitem_tick; // [skotlex]
- then add below: unsigned int warpgodelay_tick;
open src/map/pc.c
- find: sd->canuseitem_tick = tick;
- then add below:sd->warpgodelay_tick = tick;
open src/map/pc.c
- find: void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int hp, unsigned int sp)
- then add this inside the function:
unsigned int tick = gettick(); int warpgodelaycd = 5000; //This is the delay in milliseconds you can set what ever delay you want sd->warpgodelay_tick = tick+warpgodelaycd; //This is the timer
open src/map/atcommand.c
- find:ACMD_FUNC(go)
- then add this inside the function: unsigned int tick = gettick();
We are still in the @go function
- scroll down until you find this inside the function:nullpo_retr(-1, sd);
- then add below:
if(DIFF_TICK(sd->warpgodelay_tick,tick)>0) { //This is for computing the delay if the cooldown or delay is not yet finish restrict using @go clif_displaymessage(fd,"There is a 5 seconds delay in using @go command"); return 0; }
- find:unsigned int canuseitem_tick; // [skotlex]
-
More Information Please...
do you have customs hair,dye,cloth color.
headgears? anything?
opo meron po. updated po lahat ng palettes ko. sa headgears meron dn po.
-
-
how to add lawson? tulong naman po kung sang folder sya lalagay sa grf. thanks
-
Sir KeiKun d ko po madownload ung link na release nyo na client date. pahnge po ako ng another link. thanks
-
how to add ctrl + 1,2,3,4,5,6,7,8,9 flags
Thnks
-
15000,Silver Coin,Silver Coin,4,,10,0,0,,1,0,0,3,0,0,0,0,0,{},{},{}
Max limit kc 30000 kahit 0 weight. How to Increase???
Thanks po sa tutulong.
-
Dapat meron ka client na read data folder 1st para dun mo muna ttry mga custom mo then bago mo merge sa grf.
Or kung na tatagalan ka mag merge ihiwalay mo ung palettes mo.
like this
1=yourro.grf 2=palettes.grf
-
Uninstall mo muna sql tapos restart mo pc mo bago mo reinstall ulit.
-
thanks again KeiKun..
-
-
Thanks KeiKun!
-
tulong kng san part ng script ung WOE SE?
disable ko sana ung agitend2
Thanks
-
Screenshot pls. tnx
-
@Eurydice
Thanks sir
-
try this.
{ bonus bNoMagicDamage,50; bonus bUseSPrate,100; },{},{}
-
-
paano mag set ng random card drop sa monster? help po para sa mga bihasa sa script ng mob_db. Salamat
-
@Eurydice
how to update? any guide? newbie lng sa pag add ng map eh.
Salamat!
-
Client Name: Will Ragnarok Online
Client Date: 2010-08-17
SVN of Client: eathena revision 14986
Client Diffs:
+ All recommendations
+ Remove level 99 Aura
+ Increase Zoom Out MAX
+ Allow Multiple Windows
+ Enable Multiple GRFs
+ Enable 127 Hairstyles
+ Remove Gravity Logo and Ads
+ Use Ragnarok Icon
+ Only First Login Background
+ Show All Buttons In Login Background
+ Allow Chat Flood 25 lines
+ Load lua before Lub
Thanks Keikun
-
SRC Modification
svn/src/map/status.c
+
Client Modification
RO/data/lua files/stateicon/stateiconinfo.lua
RO/data/lua files/stateicon/efstids.lua
Thanks Keikun
[Tulong]@go delay when hit
in Tulong para sa Script at Database
Posted · Edited by WillRO
try mo yang nasa rathena wiki sir jaypee. walang errors sa pag compile. 100% tama pagkakalagay ko. di ko makita kung san part ang problem kc ganito po yan. ok sya sa receiving damage na may delay then pag gumamit ka naman ng skill like echant deadly poison ksma sya sa delay 5 seconds.