NPC Script wont work.

Play Now

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
This part of the NPC wont work he says "You Dont have any Coins."

But i do O.o

[@hatic]
#IF
Checkitem TicketCoin 25
#ACT
TAKE TicketCoin 25
Give HalfTicket 1
#ELSESAY
You Dont have any Coins.\\
 

Senture

LOMCN VIP
VIP
Feb 8, 2004
1,529
1
164
that script is fine. could it be a typing error between the item name in the database and the script?
 
Upvote 0

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
Fixed im a noob :P got 1 more ill post in a mo


THIS ONE DOSENT TAKE MY HALFTICKETS & change then for a full ticket.
I have 3 HalfTickets in my bag.

[@tofoon]
#IF
Checkitem HalfTicket 2
#ACT
TAKE HalfTicket 2
Give Ticket 1
#ELSESAY
You Dont have any HalfTicket's.\\
 
Last edited:
Upvote 0

hassis

Dedicated Member
Dedicated Member
Mar 16, 2006
95
0
33
#IF
checkitem Xamount
#ACT
take Xamount
goto @1
break

#ELSEACT
goto @2
break


The name of item need to bi in 1 ward alsow is dot red all name of item
 
Upvote 0

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
hassis said:
#IF
checkitem Xamount
#ACT
take Xamount
goto @1
break

#ELSEACT
goto @2
break


The name of item need to bi in 1 ward alsow is dot red all name of item

The amount is the numerical value of the item, wheras 'X' is the complete Item name, so it would be:

Code:
#IF
 checkitem CheeseCake 1
 #ACT
 take Cheesecake 1
 goto @1
 break
 
 #ELSEACT
 goto @2
 break

Nick got it right :P
 
Upvote 0

daneo1989

I am Ancient.
Staff member
Super Moderator
Dec 5, 2005
6,033
1
276
330
UK
hassis said:
#IF
checkitem Xamount
#ACT
take Xamount
goto @1
break

#ELSEACT
goto @2
break


The name of item need to bi in 1 ward alsow is dot red all name of item

thats the way i would of done it also, when i do script's like wat uve done with yours it never work's but it should be fine with the one's these people have given you
 
Upvote 0

stephenking

I HAVE A DREAM!!
Developer
Aug 28, 2005
616
39
155
Netherlands
tbh goto's are bad actions as its cheat sensitive and if the script is to big goto wont work nomore so i say try not to use goto actions so much

as im sure almost everything can be done without goto's

tho this is my oppinion
 
Upvote 0

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
I avoid goto command myself as well (considering I'm writing HUGE scripts I just forget what's supposed to be there, etc, so I like to get it all done in 1 go).
 
Upvote 0