![]() |
Hey, How could I akea shop?
yu knw with asic stuff like bombs,arrows,life, and other stuff? Is there anyway for me to have the omney when someone bys something?
|
Your sig: That's not the exact quote but close enuf :)
anyways, if you want 99 bombs to be liek 50g, you put something liek.. if (playersays(buy bombs)) { if (playerrupees>=50) { playerrupees-=50; playerbombs==99; say2 Thanks for your purchase! Come again!; } } or something liek that. :) Same with arrows, except replace bombs with darts :p |
DO NOT USE PLAYERSAYS BECAUSE PLAYERSAYS IS DUMBER THAN THE FLASH MOVIE VERMAIN POSTED IN THE NOT GRAAL RELATED THREADS FORUM, THREAD NAME "Damage your brain here.".
|
Quote:
|
playersays is alright if you're doing a non-P2P server, but only if you put a setplayerprop #c after it. Otherwise, the operations will repeat themselves, and the player will find themselves out of money.
|
re:
but will that give ME money, or just take away player money?
|
Re: re:
Quote:
|
do this, its better
NPC Code: btw: == compares, = assigns |
~AlphaFlame~
And everyone is forgetting that he wants the players money to go to him... |
im here to save the day, lol
okay, here should be the complete script:
[code] // This is where a player buys the bomb if (strequals(#c,buy bombs)) { if (playerrupees>=50) {mymoney+=50; playerrupees-=50; } setplayerprop #c,; } // This is where you take the money by saying "pay me punk" if (strequals(#a,<your account name here>)) { if (strequals(#c,pay me punk)) {playerrupees+=mymoney; mymoney=0; } } You could automatically have the server add the money to you, with p2p NPCserver commands, but this way is more simple, and can be used on a non-p2p server ;). |
| All times are GMT +2. The time now is 06:54 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.