-
Veteran
I need scripting help!
I have two scripts in progress that I can't get to work, can somebody tell me what i'm doing wrong?
1. When I touch the NPC it gives me 1 coin, and 1 questwine.
______
function onPlayerTouchsMe() {
this.chat = "I lost my wine bottle! Where could it have gone? Please find it for me!";
if (player.clientr.questwine >= 1 && player.clientr.winequest = 0); { //checks if player has the wine bottle, and no item "winequest"
player.clientr.coins += 50 && player.clientr.questwine = 0 && player.clientr.winequest += 1; //gives the player coins and the item. . . . . . "winequest" so they can't redo the quest.
}
}
______
2. When I say "deposit" nothing happens, and i'm pretty sure I didnt do the coin transferring correctly. 
______
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat = "bank") {
this.chat = "Deposit or Withdraw?";
} if (this.chat = "Deposit or Withdraw?" && player.chat = "deposit") {
this.chat = "Please state the amount you would like to deposit."; {
player.clientr.bankcoins += player.chat && player.clientr.coins -= player.chat;
}
}
}
______
sorry the forums dont show spaces
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules