Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help (https://forums.graalonline.com/forums/showthread.php?t=6062)

Huggles 06-29-2001 07:18 AM

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)"!;
}

Huggles 06-29-2001 07:26 AM

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 }

T-Squad 06-29-2001 07:30 AM

oops sorry i cant get onto ICQ...i will make it for you its very easy


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

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