Problem with using item on Player

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
barakuda
Noob
Noob
Posts: 15
Joined: 25 Jun 2008, 21:23
Noob?: Yes

Problem with using item on Player

#1 Post by barakuda »

In my server, there is an item called Star Gladiator Spirit (to soul link a star glad job)! See the image and codes below! Im using Creator (not soul linker) to minimize the BOT running in my PC! What I want is to soul link my Star Gladiator with the item Star Gladiator Spirit using my Creator! Please help me! Thanks! I'm using Openkore 2.1 SVN

This is my codes:
automacro sg {
console /\[(.*)=(.*)\] (.*) \((\d+)\): (.*)(Heart)(.*)$/ #/lv
call sgg
}

macro sgg {
pause 1
$player = $.lastMatch4
$item = @inventory (Lotto Ball 05) <<<< Core reads Star Gladiator Spirit as Lotto Ball 05
do ip $item $player
pause 1
release all
}

automacro TalisTalk {
hook item_skill
save ID
save skill
run-once 0
call talisna
}

macro talisna {
log ID= $.hooksave0 skill= $.hooksave1
do sp $.hooksave0 $player
pause 1
#do sp 479 $.lastMatch3
release all
}
This is my image:

Image

[dist=1.4] Turko (0): *Heart*
[macro] automacro triggered.
You used Item: Lotto Ball 05 (0) x 0 - 86 left
Permitted to use Star Gladiator Spirit (448), Level 5
[macro] $args->(skill) does not exist
[macro] automacro TalisTalk triggered.
[macro] [log] ID=448 skill =
Skill Star Gladiator Spirit cannot be used because your character has no such skill.
Last edited by barakuda on 15 Jul 2011, 17:11, edited 4 times in total.

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: Problem with using item on Player

#2 Post by help_us »

Code: Select all

$player = @player($.lastMatch4)
.

check noAutoSkill too
Image
Image

barakuda
Noob
Noob
Posts: 15
Joined: 25 Jun 2008, 21:23
Noob?: Yes

Re: Problem with using item on Player

#3 Post by barakuda »

help_us wrote:

Code: Select all

$player = @player($.lastMatch4)
.

check noAutoSkill too
Syntax error! T_T

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: Problem with using item on Player

#4 Post by help_us »

Code: Select all

[macro] $args->(skill) does not exist
[macro] automacro TalisTalk triggered.
there is no such variable 'skill' on item_skill hook. only variable for ID, level and name unless you modified your hook variable inside yr src.
and

Code: Select all

do sp $.hooksave0 $player
u not register any of $player on that macro TalisTalk.

btw, what is the syntax error on yr console??
Image
Image

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Problem with using item on Player

#5 Post by EternalHarvest »

Second automacro could be replaced with usual partySkill config block, and you may even be able to reconfigure its "target" option if needed from the macro before using the item, through block label.

Post Reply