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

Post Reply 
 
Thread Rating:
  • 6 Vote(s) - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A litte help with script Protect Support
Author Message
Allcar Offline
Goblin Grave Robber
*

Posts: 10
Joined: Nov 2011
Reputation: 0
Version: 1.4.1.108
Post: #1
A litte help with script Protect Support

Hi guys, I'm trying to use this script, but when I start that, the following error appears : Attempt to index a number value. Anyone knows who I concert this error ? ( Sorry for my bad english)



Code:
CoverTarget = "Xyz"

repeat
    tar = GetUserByName(CoverTarget)
    if tar ~= nil then
        cid = tar:GetId()
        monsters = GetMonsterList()
        for m in monsters.list do
            if m:GetTarget():GetId() == cid then
                Target(m)
                break
            end
        end
    end
until false;
(This post was last modified: 08-26-2013 17:13 PM by Allcar.)
08-25-2013 16:00 PM
Find all posts by this user Quote this message in a reply
Allcar Offline
Goblin Grave Robber
*

Posts: 10
Joined: Nov 2011
Reputation: 0
Version: 1.4.1.108
Post: #2
RE: A litte help with script Protect Support

Anyone ?
08-26-2013 17:14 PM
Find all posts by this user Quote this message in a reply
reynart Offline
Expired VIP Member
**

Posts: 31
Joined: Jun 2013
Reputation: 4
Version: 1.4.1.113
Post: #3
RE: A litte help with script Protect Support

Quote:User::GetTarget(): int [Method]
Method returns user target id. You need to know that on some l2j server information about monster target is not send.

Quote:if m:GetTarget():GetId() == cid then
08-27-2013 20:43 PM
Find all posts by this user Quote this message in a reply
Allcar Offline
Goblin Grave Robber
*

Posts: 10
Joined: Nov 2011
Reputation: 0
Version: 1.4.1.108
Post: #4
RE: A litte help with script Protect Support

Thanks for the reply, but I do not understand what you said, it is possible to run this script in official server?
09-02-2013 00:51 AM
Find all posts by this user Quote this message in a reply
reynart Offline
Expired VIP Member
**

Posts: 31
Joined: Jun 2013
Reputation: 4
Version: 1.4.1.113
Post: #5
RE: A litte help with script Protect Support

just change
Code:
if m:GetTarget():GetId() == cid then
to
Code:
if m:GetTarget() == cid then
09-02-2013 08:50 AM
Find all posts by this user Quote this message in a reply
Allcar Offline
Goblin Grave Robber
*

Posts: 10
Joined: Nov 2011
Reputation: 0
Version: 1.4.1.108
Post: #6
RE: A litte help with script Protect Support

worked, thank you reynart !
09-05-2013 03:29 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  c6 tower protect d1mmka 2 4,087 04-03-2016 16:16 PM
Last Post: gamias1
  More info About L2T_v1.4.3.143 | No more official support? rORUMI 86 179,695 12-10-2015 18:30 PM
Last Post: TheQQmaster
  C4 Support moshated 2 3,543 04-20-2015 11:51 AM
Last Post: Fox
  Please Make update L2tower Dont Support manolisfox 2 3,583 01-09-2015 02:03 AM
Last Post: manolisfox
Heart Support of Lineage Kicking/Delete you Tickets? tzoutzoura 6 4,666 11-17-2014 13:54 PM
Last Post: tzoutzoura
  How protect my healer in group snake000 5 4,480 02-28-2014 15:47 PM
Last Post: capucine
  ogg support in l2tower? cyberzone 2 3,102 07-25-2013 00:35 AM
Last Post: cyberzone
  Support c4 xookkep 3 3,076 02-02-2013 17:58 PM
Last Post: Hebdzik
  Protect Party Member AStark 4 4,405 12-14-2012 19:39 PM
Last Post: criticalmass
  Joint Support - Ayuda Colectiva colomaza 1 2,264 07-24-2012 18:48 PM
Last Post: colomaza



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