![]() |
making a shop
ok im making a pizza shop and i need to figure out how to make an item that will work online all i have for it like all that i know is
NPC Code: thats all i have because i cant figure out how to make it 1) an item that does stuff 2) go into your inventory and take gralats away will someone help me please? |
read commands.rtf and npcprogramming.doc
plus use else as opposed to 2 if-statements |
how do i use an else statement?
|
NPC Code: |
ahh ok thx
|
i cant figure out how to make it take rupees =(
|
You want to change the variable:
playerrupees = playerrupees - 7; or playerrupees -= 7; |
thx! alot
|
ok uhm i need to make a weapon that heals you and then dissapears how would i do that?
NPC Code: then what? and how do i make it add a weapon to your inventory because i put the weapon in RC named it the same but when i buy it it doesnt add it X.x |
NPC Code:destroy; *I sense another excaliber* |
Perhaps you should've learned a bit about scripting, and the other development areas in Graal before going ahead and wasting a hundred bucks on a server?
|
Quote:
Quote:
Oh common, i am SO not that bad. At least you can't fond the answers to my problems in the little box at the side of every NPC done offline |
Quote:
|
Quote:
|
It might be worth tutoring him in the basics of GS2, because I dread to see that much money go to total waste, like I've seen before.
I doubt it'd take much effort, heck, I could do it. |
Quote:
|
X.x i didnt bu a server im a dev on another server...im not that stupid, i mean i pretty ggod at levels,graphics, and gani's , its just the scipting im litte rusty on so rather than diss on me it would be nicer if you helped me or directed me in the right direction..thats all i asked for, and thats kinda what this forum is for so please dont chastise me for no apparent reason....thanks....and codien thanks alot man i could really use yuor help in some things so yeah ill get ahold of jo0.
|
Quote:
Think about what you did: playerrupees >= 7 (less then OR EQUAL to seven) "not enough money" playerrupees <= 7 (greater then OR EQUAL to seven) "sold" How could it be both? Just for future reference when you get to more complex scripting. I think you should get into a habbit to doing this correctly so that they always work out right. |
If you are making this for an online server,
you will need to make the playerhearts and rupees adjustments happen serverside. Hint: use a triggeraction on the npc |
Quote:
|
| All times are GMT +2. The time now is 01:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.