[CD3.55] probelm with takew

Tinerfe

Loyal Member
Loyal Member
Mar 15, 2016
26
0
27
Hello,
I want to make a npc you remove the talisman that is in place, but can not, alone with remove this on the bracelet
 

CraZyEriK

Golden Oldie
Golden Oldie
Jan 23, 2006
1,215
246
170
Alicante, Spain
i think as i know, he wants to remove talisman of taoists , the space near to torch , i mean amulet, he only can take off from bracelet..
command is takew item number-of-space ... we've tried from 1 to 12 and there is not number for amulet
 
Upvote 0

Tinerfe

Loyal Member
Loyal Member
Mar 15, 2016
26
0
27
It would also be not to let me go if you take me but not work.

[@main]
#Say
blablabla
<Enter/@entrar>\
<Paso soy un cagao/@exit>




[@entrar]
#If
Chekitem Talisman(L) 1
CHECKITEMW Talisman(L) 1
#Say
LLevas pociones, talismanes o drogas
#elseact
mapmove xxx x y
 
Upvote 0

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
How say crazy, try to change the number, test nº 0, 9 & 11.

CheckitemW ChaoticBlade 1 ;Green (comand) , Red (Item) , Number (Position place)
TakeW ChaoticBlade 1

1; Weapon
2;Torch
3;Armour
4;Helmet
5;Brace(L)
6;Brace(R)
7;Ring(L)
8;Ring(R)
9; ?
10;Armour


---------- Post Merged at 11:26 AM ---------- Previous Post was at 11:24 AM ----------

its better it:

#IF
Take Talisman(L) 100
TakeW Talisman(L) 5
TakeW Talisman(L) Nº Amule
Take Townteleport 100
Take Randomteleport 100
#ACT
Mapmove z x y
CLOSE
BREAK
 
Last edited:
Upvote 0

CraZyEriK

Golden Oldie
Golden Oldie
Jan 23, 2006
1,215
246
170
Alicante, Spain
we've tried checkitemw first, to see position.. real npc for testing was

[@main]
#Say
blablabla
<Enter/@entrar>\
<Paso soy un cagao/@exit>




[@entrar]
#If
Chekitem Talisman(L) 1 ; (for bag)
CHECKITEMW Talisman(L) 1 ; (for wearing talisman) we've tried from 1 to 14
#Say
LLevas pociones, talismanes o drogas
#elsesay
No llevas talisman


and it doesn't detect it on amulet space :S only left bracelet wich is number 1


thx josiko for explain
 
Upvote 0

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
Tinirfe, i test the script and work fine.


[@main]
#IF
#ACT
TakeW HollyAmulet(S) 0
TakeW HollyAmulet(S) 1
TakeW HollyAmulet(S) 2
TakeW HollyAmulet(S) 3
TakeW HollyAmulet(S) 4
TakeW HollyAmulet(S) 5
TakeW HollyAmulet(S) 6
TakeW HollyAmulet(S) 7
TakeW HollyAmulet(S) 8
TakeW HollyAmulet(S) 9
TakeW HollyAmulet(S) 10
TakeW HollyAmulet(S) 11
BREAK

CraZyEriK;1034907[COLOR=#666666 said:
#If[/COLOR]
Chekitem Talisman(L) 1 ; (for bag) -> Take
CHECKITEMW Talisman(L) 1 ; (for wearing talisman) -> TakeW


It's work fine, if you can't do work it, better don't oppen a server, and continue study/working in scripts.
 
Last edited:
Upvote 0

CraZyEriK

Golden Oldie
Golden Oldie
Jan 23, 2006
1,215
246
170
Alicante, Spain
You're not much intelligent, we want to know wich one is to take amulet, not every slot ..

to say " if you can't do work it, better don't oppen a server, and continue study/working in scripts." better dont say nothing, and keep copying servers lol


pd: we want to check if they got amulet Wearing, thats why the command is checkitemW not takew ..
 
  • Like
Reactions: Vaeborg
Upvote 0

Lionsm!ght

Dedicated Member
Dedicated Member
Aug 28, 2015
540
137
85
You're not much intelligent, we want to know wich one is to take amulet, not every slot ..

to say " if you can't do work it, better don't oppen a server, and continue study/working in scripts." better dont say nothing, and keep copying servers lol


pd: we want to check if they got amulet Wearing, thats why the command is checkitemW not takew ..

I am trying to do a similar script, however it appears the CheckItemW Itemname Slot is not the correct use. CheckItemW only checks if you have that item equipped, the number part is not the equipment slot but appears to be the amount of them you have equipped.

Is there a command that will check if you have a specific item equipped in a specific slot?
 
  • Like
Reactions: wbrian
Upvote 0