Gamepoint npc

Value

Dedicated Member
Dedicated Member
Feb 21, 2006
160
0
43
LegendsReturn
Ok ive made a npc something like this.

[@DRA]
#IF
checkgamepoint > 30
#ACT
gamepoint - 30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
<Ok thank you/@exit>

could some one give me advice as it dont seem to be takeing the gamepoints and giveing the item :(

/Value
 

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
Code:
[@DRA]
#IF
checkgamepoint 30
#ACT
gamepoint -30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
<Ok thank you/@exit>

I assume that it isnt the first script in the NPC file
 
Upvote 0

-Raz0rfang-

Golden Oldie
Golden Oldie
Jan 30, 2006
831
0
103
Banned
well if it is it needs to be
[@main]
#IF
checkgamepoint 30
#ACT
gamepoint -30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
<Ok thank you/@exit>
but im 75% sure it isnt the first
 
Upvote 0

Value

Dedicated Member
Dedicated Member
Feb 21, 2006
160
0
43
LegendsReturn
[@Main]
What items would u like.\
<Items1 (it will cost ** game points/@DRA>\ \

[@DRA]
#IF
checkgamepoint > 30
#ACT
gamepoint - 30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
<Ok thank you/@exit>


That is the Npc script.



Nop that dint work >.<

/Value
 
Upvote 0

-Raz0rfang-

Golden Oldie
Golden Oldie
Jan 30, 2006
831
0
103
Banned
[@main]
#IF
checkgamepoint 30
#ACT
delgamepoint 30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
<Ok thank you/@exit>
dunnu if that will work.
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
Value said:
[@Main]
What items would u like.\
<Items1 (it will cost ** game points/@DRA>\ \

[@DRA]
#IF
checkgamepoint > 30
#ACT
gamepoint - 30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
<Ok thank you/@exit>

Ok use this script

Code:
[@main]
What items would u like.\
<Items1 (it will cost ** game points/@DRA>\ \

[@DRA]
#IF
checkgamepoint 30
#ACT
gamepoint -30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
#ELSESAY
You do not have enough Game Points
<Ok thank you/@exit>
 
Upvote 0

Value

Dedicated Member
Dedicated Member
Feb 21, 2006
160
0
43
LegendsReturn
Fire said:
Ok use this script

Code:
[@main]
What items would u like.\
<Items1 (it will cost ** game points/@DRA>\ \
 
[@DRA]
#IF
checkgamepoint 30
#ACT
gamepoint -30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
#ELSESAY
You do not have enough Game Points
<Ok thank [EMAIL="you/@exit>"]you/@exit>[/EMAIL]

i have alrdy tryed that and it dint work >.<

/Value
 
Upvote 0

-Raz0rfang-

Golden Oldie
Golden Oldie
Jan 30, 2006
831
0
103
Banned
Code:
[@main]
Welcome fellow one\
I can give you a item for gamepoints\
<Kay/@DRA>
[@DRA]
#IF
checkgamepoint 30
#ACT
takegamepoint  30
give itemname 1
#SAY
Thank you very much <$USERNAME> Enjoy your brace.\
<Thanks/@exit>
#ELSESAY
You dont have the requirements.\
<Darn/@exit>
obviously you can edit this, just one from scrath, see if it works
 
Upvote 0

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
155
Darlington, UK
Code:
[@main]
You have <$GAMEPOINT>'s.\
<Click me/@gp>

[@gp]
#IF
checkgamepoint = 30
#ACT
gamepoint - 30
give SomeItemName 1
#SAY
You have <$GAMEPOINT>'s left.\
#ELSESAY
You only got <$GAMEPOINT>, and thts not enuf\ \

im 99.999 sure thtl work as i used the same code i used for a main feature of destiny. If it dont sumets wrong or im tired 1 of 2
 
Upvote 0

Scorpian

Golden Oldie
Golden Oldie
Jul 8, 2003
728
37
165
Manchester
Greater than less than and equal do as they say

= 50 Would only work if you had 50
> 50 would only work if you had 51 52 53 54 55..
< 50 would only work if you had 49 48 47 46 45 44..


Change it to > 29
 
Upvote 0

Ragnar

Hallowed be thy name
Legendary
Golden Oldie
Loyal Member
Jul 20, 2004
5,258
3
275
Yeah as scorpian said, you probably have 30 gamepoints, but it is checking for 31.
 
Upvote 0

daniejam

Golden Oldie
Golden Oldie
Apr 4, 2004
790
0
103
using the correct m2server? and u checked gamepoints name in !setup? sure its not called gamegold or sumit like that

oh and on my npcs i just use

gamepoint > 29

not

checkgamepoint > 29
 
Upvote 0

Value

Dedicated Member
Dedicated Member
Feb 21, 2006
160
0
43
LegendsReturn
daniejam said:
using the correct m2server? and u checked gamepoints name in !setup? sure its not called gamegold or sumit like that

oh and on my npcs i just use

gamepoint > 29

not

checkgamepoint > 29

ok ill check that later but at the min im just going to have a few drinks with my mates

/Value
 
Upvote 0

DayWalker™

Golden Oldie
Golden Oldie
Dec 11, 2004
761
1
103
Middlesbrough ! Smoggy!
[@DRA]
#IF
checkitem gamepoint 30
#ACT
take gamepoint 30
give itemname 1
goto @given
#ELSEACT
goto @pointerror

[@given]
#say
there you go <$USERNAME>\
<exit/@exit>\

[@pointerror]
#say
you dont have enough gamepoints\ \
<leave/@exit>\

try that....(im new to 1.9 / ledu files so correct me if im coding wrong.)

/Stan
 
Upvote 0

Ragnar

Hallowed be thy name
Legendary
Golden Oldie
Loyal Member
Jul 20, 2004
5,258
3
275
[@main]
#IF
CHECKGAMEGOLD > 29
#ACT
GIVE uberleetarmour666xxxawesomething
GAMEGOLD - 30
#SAY
There you go, your own uberleetarmour666xxxawesomething.\
#ELSESAY
Zomg you scammer, don't try to get the uberleetarmour666xxxawesomething\
without paying!\
 
Upvote 0