L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

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 2,957 11-26-2019 21:33 PM
Last Post: AndrePar
  L2 Speak npc Same time than Spawn fastkill22 0 1,768 01-26-2019 02:12 AM
Last Post: fastkill22
  time for dollars on acc scorpiox 0 1,711 11-20-2016 07:47 AM
Last Post: scorpiox
  target for self buff manuel16007 1 3,270 01-22-2016 16:31 PM
Last Post: TheQQmaster
  Running some servers with L2t injected and innova the same time. testforl2 0 2,158 12-29-2015 14:56 PM
Last Post: testforl2
F.A.Q. L2Tower Stuck and work all time teris19942 0 2,542 12-15-2015 23:38 PM
Last Post: teris19942
  help pls time code lucasdrag 4 4,043 11-18-2015 22:33 PM
Last Post: TheQQmaster
  ISS Buff Script caitir 11 12,394 10-19-2015 02:45 AM
Last Post: LustMurder
  premium license activation time Louna 1 3,098 10-05-2015 18:58 PM
Last Post: Fox
  script help for buff oop mikey651990 3 3,750 09-12-2015 14:58 PM
Last Post: mikey651990



User(s) browsing this thread: