Jump to content

Reducto

Members
  • Posts

    231
  • Joined

  • Last visited

Everything posted by Reducto

  1. Without constantly looping while checking the players health which is extremely unadvised. I don't think it's possible. I recommend you check this topic for a source mod to @go allowing the delay of @go when attacking and being attacked. http://rathena.org/board/topic/84627-how-to-disable-this-delay/ But if you really want it an npc based @go. - script Delayer -1,{ OnPCLoginEvent: if(Hp!=@hp&&@hp) set @tick, gettimetick(2)+.delay; set @hp, Hp; addtimer .loop,"Delayer::OnPCLoginEvent"; end; OnInit: set .loop, 100; //Speed of loop in Milliseconds set .delay, 5; //Delay in seconds. } Then just add a check in his script after OnAtcommand: Like if(set(.@a,@tick-gettimetick(2))>0){ dispbottom "You must wait "+.@a+" second(s) before warping."; end; } How about when hit by any monster or in battle state?
  2. How to add delay when hit? 5 Seconds Delay to @go when hit
  3. Hello, How to make this last for 3 minutes clif_specialeffect(bl, 679, AREA); or how to make it display when a specific status is set? Because I want to create a scroll for aura. If they use the scroll they have a effect that will last only in 3minutes. Example is this. int skill_enchant_elemental_end (struct block_list *bl, int type) { struct status_change *sc; const enum sc_type scs[] = { SC_ENCPOISON, SC_ASPERSIO, SC_FIREWEAPON, SC_WATERWEAPON, SC_WINDWEAPON, SC_EARTHWEAPON, SC_SHADOWWEAPON, SC_GHOSTWEAPON, SC_ENCHANTARMS }; int i; nullpo_ret(bl); nullpo_ret(sc= status_get_sc(bl)); clif_specialeffect(bl, 382, ALL_CLIENT); if (!sc->count) return 0; for (i = 0; i < ARRAYLENGTH(scs); i++) if (type != scs[i] && sc->data[scs[i]]) status_change_end(bl, scs[i], INVALID_TIMER); return 0; } The problem is the effect will be lost if you try to warp or use flywings. I want the effect to last until a certain time.
  4. Sir how about you add a exception. like prontera mapflag noconsume 12033,501 <<<< This items will be usable and all the other consumable items will not work.
  5. Hello guys, I just want to ask if its possible to change the color of the npctalk npc script. help me pretty please.
  6. Hello, Can anybody help me to make the guild message to be the last to load? I mean I have a login notice(using dispbottom), but the Guild message is popping out first. I want it to be the very last to appear.
  7. Sight* I cannot still get this font.
  8. Can anybody there help me with this What font is this?
  9. Harmony & eAmod

  10. Can anybody help me fix this thing. Im using the latest toasty warper script. Im having this error. [Error]: script:getd: variable name is empty [Debug]: Data: string value="" [Debug]: Source (NPC): toastywarperbase (invisible/not on a map) im using the latest eathena revision.
  11. Im using this. Is this compatible with eathena? http://sushiduy.plesk3.freepgs.com/ROScripts/ToastyWarper/toastywarper_132.txt
  12. Can anybody help me to solve this Im using latest Toastywarper npc. But I got this error. [Error]: script:getd: variable name is empty [Debug]: Data: string value="" [Debug]: Source (NPC): toastywarperbase (invisible/not on a map) Thanks!
  13. How can I duplicate this status?
  14. I mean if the player is above 50% weight. When he try to open the box. There will be a message like. "You are overweight, you cannot open the box."
  15. Hello I need a npc script for this. Before opening the box it will check first the weight of the character to get the item. 12920,Enriched_Elunium_Box,Enriched Elunium Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem 7619,10; },{},{}
  16. The table is not updating in game. I need to restart the server again to see the update. Please help.!
  17. How can I disable all skill in map with a certain time and activate it again with a certain time?
  18. Hello, Also how can I make only one player can finish the quest daily? and it will be available again after 24 hours? thanks!
  19. SOLVED! THANKS!
  20. - script skull -,{ OnPCKillEvent: // anti-suicide, can remove if( killedrid == getcharid(3) ) end; // don't loot in this map if( ! compare( .ALLOW_MAP$, ";" + strcharinfo(3) + ";" ) ) end; set .@size, getarraysize(@SKULL_LOOT_AID); set .@ok, 1; while ( .@i < .@size ) { if ( @SKULL_LOOT_DELAY[.@i] < gettimetick(1) ) { deletearray @SKULL_LOOT_DELAY[.@i], 1; deletearray @SKULL_LOOT_AID[.@i], 1; set .@size, .@size-1; continue; } if ( @SKULL_LOOT_AID[.@i] == killedrid ) set .@ok, 0; set .@i, .@i+1; } set @SKULL_LOOT_DELAY[.@size], gettimetick(1) + .SKULL_DELAY; set @SKULL_LOOT_AID[.@size], killedrid; if ( .@ok ) getnameditem( .SKULL_ID, rid2name(killedrid) ); end; OnInit: // Configs set .SKULL_ID , 7420 ; set .SKULL_DELAY , 120 ; // seconds. setarray .@allow_map$ , "ivory_pvp" ; // Building a Quick Search function for ( set .@size, getarraysize(.@allow_map$); .@i<.@size; set .@i,.@i+1 ) set .ALLOW_MAP$, .ALLOW_MAP$ + ";" + .@allow_map$[.@i]; set .ALLOW_MAP$, .ALLOW_MAP$ + ";"; } Can anybody here help me. I have this table in my sql. DROP TABLE IF EXISTS `char_pk`; CREATE TABLE `char_pk` ( `char_id` int(11) NOT NULL, `kill_count` int(11) NOT NULL default '0', `death_count` int(11) NOT NULL default '0', `score` int(11) NOT NULL default '0', PRIMARY KEY (`char_id`) ) ENGINE=InnoDB; I want every one kill 1 score will be inserted to the sql table.
×
×
  • Create New...