Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-29-2001, 07:18 AM
Huggles Huggles is offline
Should I care anymore?
Huggles's Avatar
Join Date: Apr 2001
Location: Arizona
Posts: 2,127
Huggles is on a distinguished road
Send a message via AIM to Huggles Send a message via Yahoo to Huggles
Help

Ok Im trying to script a vault... A npc that allows a player that I assign by saying his account name.... This first time I started scripting and I dont know whats wrong =/

Quote:
// NPC made by Captain USA
if (playerenters &&(#a,Captain-USA))
if (strequals(#c,Give Vault 3)) {}
if (strequals(#t(1),Change)&&strequals(#t(2),Owner)) {
setstring this.owner,#t(3);
}

if (playerchats && (#a,Captain-USA){#c, Give vault 3 = #a
setstring vault3,#c;
}
if (playertouchsme && #t (vault3){
message Vault USER: "#s(vault3)"!;
}
__________________
Captain USA, Or Captin USA

Plain and simple.
Reply With Quote
  #2  
Old 06-29-2001, 07:26 AM
Huggles Huggles is offline
Should I care anymore?
Huggles's Avatar
Join Date: Apr 2001
Location: Arizona
Posts: 2,127
Huggles is on a distinguished road
Send a message via AIM to Huggles Send a message via Yahoo to Huggles
I changed it a bit I think Im doing better I am?

Quote:
// NPC made by Captain USA
if (playerenters &&(#a,Captain-USA))
if (strequals(#c,Give Vault 3)) {}
if (strequals(#t(1),Change)&&strequals(#t(2),Owner)) {
setstring this.owner,#t(3);
}

if (playerchats && (#a,Captain-USA){#c, Give vault 3 = #a
setstring vault3,#c;tokenize this.#a
}
if (playertouchsme && #t (vault3){
message Vault USER: "#s(vault3)"!;
}
if (washit) {#c, User of Vault is #A }
__________________
Captain USA, Or Captin USA

Plain and simple.
Reply With Quote
  #3  
Old 06-29-2001, 07:30 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
oops sorry i cant get onto ICQ...i will make it for you its very easy
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.