creeps123 Posted January 8, 2013 Posted January 8, 2013 Can you give me a script that i can add inside my pvproom script? if you talk to it.. it will ask if you want to heal or leave.. thanks in advance guys! the heal has cooldown of 30 seconds.. thanks!!! Quote
Dream Posted January 8, 2013 Posted January 8, 2013 how about the leave.. what do you mean leave ? leave as a quit or leave as a leave in a room ? Quote
creeps123 Posted January 8, 2013 Author Posted January 8, 2013 how about the leave.. what do you mean leave ? leave as a quit or leave as a leave in a room ? Leave in the room. warp back to prontera.. i want it to be like this one.. function script HealerPVP { mes "How do you need help?."; menu "Heal Please",L_Heal,"Leave",L_Leave; L_Heal: percentheal 100,100; close; L_Leave: warp "prontera",156,179; close; } but i want to set delay on the heal menu.. i just don't know how to do it.. bump please Quote
Capuche Posted January 8, 2013 Posted January 8, 2013 Using trunk/npc/custom/healer.txt - script Healergfd -1,{ set .@Price,0; // Zeny required for heal set .@Buffs,0; // Also buff players? (1: yes / 0: no) set .@Delay,30; // Heal delay, in seconds if ( select("Heal Please","Leave") -1 ) { warp "prontera",156,179; close; } callfunc "F_ClearGarbage",0; if (@HD > gettimetick(2)) end; if (.@Price) { message strcharinfo(0),"Healing costs "+.@Price+" Zeny."; if (Zeny < .@Price) end; if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close; set Zeny, Zeny-.@Price; } specialeffect2 313; percentheal 100,100; if (.@Buffs) { specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; } if (.@Delay) set @HD, gettimetick(2)+.@Delay; close; } alberta,25,240,6 duplicate(Healergfd) Healer#albgfd 909 Heal delay : 30 seconds. Option warp. Quote
creeps123 Posted January 9, 2013 Author Posted January 9, 2013 Using trunk/npc/custom/healer.txt - script Healergfd -1,{ set .@Price,0; // Zeny required for heal set .@Buffs,0; // Also buff players? (1: yes / 0: no) set .@Delay,30; // Heal delay, in seconds if ( select("Heal Please","Leave") -1 ) { warp "prontera",156,179; close; } callfunc "F_ClearGarbage",0; if (@HD > gettimetick(2)) end; if (.@Price) { message strcharinfo(0),"Healing costs "+.@Price+" Zeny."; if (Zeny < .@Price) end; if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close; set Zeny, Zeny-.@Price; } specialeffect2 313; percentheal 100,100; if (.@Buffs) { specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; } if (.@Delay) set @HD, gettimetick(2)+.@Delay; close; } alberta,25,240,6 duplicate(Healergfd) Healer#albgfd 909 Heal delay : 30 seconds. Option warp. I tried it.. the first one goes well.. it heals you.. but the second time you are going to use the npc.. when you try to heal.. it is stucked.. it is like you are stucked in the conversation. can't move.. and also.. can you remove the buffs? i want it also to everytime they try to heal again but it is too early the npc will say that Please wait for 30 seconds before you can use me again.. (this is only for the same player that uses it) but if another player uses it.. he will be healed.. i want the cooldown for an individual.. (player 1 will heal.. then player 1 will heal again but not yet 30seconds.. npc will tell him Please wait for xx seconds before you can use me again.. then player 2 will heal.. he can use it.. but the 2nd time he uses it with the effect of cooldown. he wont be able to use it..) Quote
Capuche Posted January 9, 2013 Posted January 9, 2013 (edited) but the second time you are going to use the npc.. when you try to heal.. it is stucked.. it is like you are stucked in the conversation. can't move.. Yeah sorry I made a mistake. and also.. can you remove the buffs? The buff is already removed. i want it also to everytime they try to heal again but it is too early the npc will say that Please wait for 30 seconds before you can use me again.. (this is only for the same player that uses it) but if another player uses it.. he will be healed.. i want the cooldown for an individual.. Okay here a version with a message. - script Healergfd -1,{ set .@Price,0; // Zeny required for heal set .@Buffs,0; // Also buff players? (1: yes / 0: no) set .@Delay,30; // Heal delay, in seconds if ( select("Heal Please","Leave") -1 ) { warp "prontera",156,179; close; } callfunc "F_ClearGarbage",0; set .@t, @HD - gettimetick(2); if ( .@t > 0 ) { message strcharinfo(0),"Sorry, you must wait "+.@t+" seconds."; close; } if (.@Price) { message strcharinfo(0),"Healing costs "+.@Price+" Zeny."; if (Zeny < .@Price) end; if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close; set Zeny, Zeny-.@Price; } specialeffect2 313; percentheal 100,100; if (.@Buffs) { specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; } if (.@Delay) set @HD, gettimetick(2)+.@Delay; close; } alberta,25,240,6 duplicate(Healergfd) Healer#albgfd 909 Edited January 9, 2013 by Capuche Quote
creeps123 Posted January 9, 2013 Author Posted January 9, 2013 (edited) Ok sir! lemme try it! thanks! EDIT: tested it out but I can't talk to it now.. whenever i click it.. it does nothing.. Help please.. bump! Edited January 9, 2013 by creeps123 Quote
Capuche Posted January 9, 2013 Posted January 9, 2013 I change it. It works also for eathena or old version now. - script Healergfd -1,{ set .@Price,0; // Zeny required for heal set .@Buffs,0; // Also buff players? (1: yes / 0: no) set .@Delay,30; // Heal delay, in seconds if ( select("Heal Please","Leave") -1 ) { warp "prontera",156,179; close; } callfunc "F_ClearGarbage",0; set .@t, @HD - gettimetick(2); if ( .@t > 0 ) { message strcharinfo(0),"Sorry, you must wait "+.@t+" seconds."; close; } if (.@Price) { message strcharinfo(0),"Healing costs "+.@Price+" Zeny."; if (Zeny < .@Price) end; if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close; set Zeny, Zeny-.@Price; } specialeffect2 313; percentheal 100,100; if (.@Buffs) { specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10; specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10; } if (.@Delay) set @HD, gettimetick(2)+.@Delay; close; } alberta,25,240,6 duplicate(Healergfd) Healer#albgfd 909 Quote
creeps123 Posted January 9, 2013 Author Posted January 9, 2013 Thanks sir!!!! ill update you if i have more problems hehe Quote
Question
creeps123
Can you give me a script that i can add inside my pvproom script? if you talk to it.. it will ask if you want to heal or leave.. thanks in advance guys!
the heal has cooldown of 30 seconds.. thanks!!!
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.