Hello,
I'm having trouble in using "useitem" in my script:
IF
GlobalTimerExpired("sanctuary","LOCALS")
GlobalTimerExpired("castnattack","LOCALS")
HasItemEquiped("_WAND11",Myself) // Wand of the Heavens
CheckStatLT(LastSeenBy(Myself),40,RESISTFIRE)
Range(LastSeenBy(Myself),100)
See(LastSeenBy(Myself))
THEN
RESPONSE #100
ReallyForceSpell(LastSeenBy(Myself),CLERIC_FLAME_STRIKE)
SetGlobalTimer("castnattack","LOCALS",6)
DisplayStringHead(Myself,7273) // Wand of the Heavens
UseItem("_WAND11",LastSeenBy(Myself)) // Wand of the Heavens
END
I have added the reallyforcespell to check my LastSeenBy(Myself)
Sometimes, everything work correctly. otherwise, Useitem doesn't work at all, I see the string "Wand of the Heaven", enemy stops melee and look his target.
but nothing happens
![Sad :(](https://forums.pocketplane.net/Smileys/classic/sad.gif)
With the reallyforcespell line added, the target get the flame strike.
For example, in my last test:
1 fighter, 2 mages
cleric melee the fighter, he hold one mage.
while he is meleeing, he use wand each round on the other mage
the mage died in 2 rounds
so he must use his wand on the other mage, but it doesn't work
(lastseen work because the other mage take flamstrike)
Does someones know what happens? I would be so happy to make things working
![Smiley :)](https://forums.pocketplane.net/Smileys/classic/smiley.gif)