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
plugins worng ?
Author Message
benbt91 Offline
VIP Member
***

Posts: 694
Joined: Mar 2012
Reputation: 47
Version: 1.4.3.143
Post: #11
RE: plugins worng ?

(07-11-2014 09:44 AM)TheQQmaster Wrote:  it works, yesterday before posted, I tested, but only for party joining, faund id, u just neeed to find correct id, use good editor and all be good

ok Ty QQmaster i will try find it out Big Grin
07-11-2014 12:45 PM
Find all posts by this user Quote this message in a reply
jonathan915 Offline
Porta
*

Posts: 43
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.138
Post: #12
RE: plugins worng ?

ok.... I can use skills but i need put a delay,, and i use sleep 3000 but its not is stable...
how i can say to wait 3seg for the reuse of skills???

Code:
function OnChatSystemMessage(id, msg)
    if(start == true) then
if (id == 1449) then -- bit
Command("/useshortcut 10 3");
end;
if (id == 1467) or (id == 1464) or (id == 1466) then
Command("/useshortcut 10 3");
end;
if (id == 1468)or(id == 1465) then
Command("/useshortcut 10 4");
end;
if (id == 1469) or (id == 1450) or (id == 1458) or (id == 1451) or (id == 1452) then
Command("/useshortcut 10 2");
end;
end;

maybe i can use command /delay 3000 ????
(This post was last modified: 07-11-2014 16:13 PM by jonathan915.)
07-11-2014 16:09 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #13
RE: plugins worng ?

I dont think you can sleep or delay in plugin
07-11-2014 17:38 PM
Find all posts by this user Quote this message in a reply
jonathan915 Offline
Porta
*

Posts: 43
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.138
Post: #14
RE: plugins worng ?

-.- ok,,, but what can use to wait for reuse of skills??

now,, im using "UseSkillRaw" ,, but i dont know how a can set the reuse...
ยบ
(This post was last modified: 07-11-2014 20:01 PM by jonathan915.)
07-11-2014 19:10 PM
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #15
RE: plugins worng ?

(07-11-2014 19:10 PM)jonathan915 Wrote:  -.- ok,,, but what can use to wait for reuse of skills??
how to use sleep in plugins, example

    LUA Programming
function iNeedSleepHere()
   ShowToClient(tostring(os.date()),"Hi!");
   --Do something
   Sleep(2000);
   --Do something
   ShowToClient(tostring(os.date()),"2 seconds passed!");
end;
this:StartThread("iNeedSleepHere"); -- Do not abuse it, can't be run with arguments.
--Its meant to be used in plugins only.


PUSH [Image: knUu53] IF HELPED
07-11-2014 20:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : jonathan915(+1) , benbt91(+2) , maXter7(+1)
jonathan915 Offline
Porta
*

Posts: 43
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.138
Post: #16
RE: plugins worng ?

I hv a problem with reuse of skills... I dont need sleep,,, I need a comand ,, if reuse its AVAILABLE... useskillraw.. or something.. thz anyway... ^^

Skill:CanBeUsed() maybe i can use this... i dont try... XD

or this... IsSkillAvailable =P
(This post was last modified: 07-11-2014 21:12 PM by jonathan915.)
07-11-2014 20:35 PM
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #17
RE: plugins worng ?

(07-11-2014 20:35 PM)jonathan915 Wrote:  I hv a problem with reuse of skills... I dont need sleep,,, I need a comand ,, if reuse its AVAILABLE... useskillraw.. or something.. thz anyway... ^^

Skill:CanBeUsed() maybe i can use this... i dont try... XD

or this... IsSkillAvailable =P

    LUA Programming
function UseSkillAttack(skillID)
	local Skill = GetSkills():FindById(skillID);
	if (Skill ~= nil) and (Skill:IsSkillAvailable()) then 
 UseSkillRaw(skillID, false, false);
	end;
end;



how to use ?

example
    LUA Programming
UseSkillAttack(urskillid)


PUSH [Image: knUu53] IF HELPED
(This post was last modified: 07-11-2014 23:53 PM by TheQQmaster.)
07-11-2014 23:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : jonathan915(+1)
jonathan915 Offline
Porta
*

Posts: 43
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.138
Post: #18
RE: plugins worng ?

great!! but i cant ... -.-" I tryed with "getreuse" too... but i cant make work on...
07-12-2014 00:34 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
WTS help plugins Augment Interlude blackzer01 0 3,445 01-18-2016 17:01 PM
Last Post: blackzer01
  how do get Daily Mission item for script or plugins? king200527 0 2,339 10-26-2015 17:03 PM
Last Post: king200527
  WTB Auto accept mail scripts or plugins king200527 0 2,387 07-07-2015 11:39 AM
Last Post: king200527
  cant see unstuck plugin on /cfg plugins after infinite odysey drake182 0 2,298 05-13-2015 16:23 PM
Last Post: drake182
  Do you use PVP scripts/plugins? Vinter 2 3,822 11-07-2014 17:54 PM
Last Post: Vinter
  How do plugins work? erwin004 3 2,887 02-04-2014 04:17 AM
Last Post: erwin004
  Lindvior new classes problem in plugins and scripts tuxevil 15 11,365 05-31-2013 00:03 AM
Last Post: infernum
  How use Plugins ? szakal161 1 2,766 12-15-2012 15:16 PM
Last Post: Fox
  Party in plugins horato 0 2,061 12-05-2012 22:21 PM
Last Post: horato
  Plugins Everest 8 6,658 10-02-2012 12:42 PM
Last Post: Everest



User(s) browsing this thread: