Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
buff time use
Author Message
powercheats Offline
Goblin Grave Robber
*

Posts: 16
Joined: May 2012
Reputation: 0
Version: 1.4.3.143
Post: #1
buff time use

Code:
function rebuff()
if (not GetMe():GotBuff(BuffID)) or (GetMe():GotBuff(BuffID) and (GetMe():GetBuff(BuffID).endTime > GetTime() + 119*60*1000)) then
return true
end
return false

function rez()
SetPause(true)
if GetMe():IsAlikeDeath() == true then
RequestRestartPoint(2)
return true
end
return false
end

repeat

if rebuff() and not rez() then
if(GetZoneType() == 15) then
UseItem(736);
Sleep(5000);
elseif rez() then
Sleep(5000);
end
end;
until false;

It's a part of my code,
end

Hello people, my character detect buff only when i use a skill EX: Stealth from treasure hunter, after use escape and rebuf into town, buffs is never gonna be checked again.
Anyone can help me?
04-20-2015 20:33 PM
Find all posts by this user Quote this message in a reply
plixplox Offline
Expired VIP Member
**

Posts: 304
Joined: Nov 2013
Reputation: 23
Version: 1.4.2.138
Post: #2
RE: buff time use

then add something to check for buffs in your script sections,
ie,
if not getzonetype == 12 then
rebuff()
end;

Just include somewhere..
04-20-2015 20:38 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Exclamation Help with script for buff AndrePar 0 1,179 11-26-2019 21:33 PM
Last Post: AndrePar
  in the mind 95% of the time it's shahhusnain 0 482 10-24-2019 15:13 PM
Last Post: shahhusnain
  Senators rout Maple Leafs within just pre-time opener Doles 0 433 09-19-2019 03:50 AM
Last Post: Doles
  https://www.highlife4man.com/prime-time-boost/ Ladve1940 0 439 08-08-2019 13:22 PM
Last Post: Ladve1940
  nike air max 270 classic produces for that vacation time Eleusine 3 1,238 07-29-2019 11:13 AM
Last Post: Armanda Srock
  Too little action over too long of a time as Machado zhangzk 0 430 05-27-2019 05:44 AM
Last Post: zhangzk
  a lot of time stretching and Labi1995 0 712 04-17-2019 07:19 AM
Last Post: Labi1995
  Likely for the last time and almost 11 years laiyongcai92 0 491 01-30-2019 04:13 AM
Last Post: laiyongcai92
  L2 Speak npc Same time than Spawn fastkill22 0 506 01-26-2019 02:12 AM
Last Post: fastkill22
  This game marked the first time Wentz was back under center zhangzk 0 501 01-16-2019 05:47 AM
Last Post: zhangzk



User(s) browsing this thread: 1 Guest(s)