Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 07-15-2001, 06:40 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Well, the NPC Server version would be something like this:
NPC Code:
if (created) {
this.id=0; //Change to another number for different doors
setshape 1,width,height; //You'll need to change width height to the image width and height in pixels
}
if (playerchats&&strequals(#a,Lugie)) {
if (startswith(set owner #v(this.id),#c)) {
tokenize #c;
if (tokenscount>3) {
for (i=3;i<tokenscount;i++) setstring this.owner,#t(i); //This is so that it works with accounts with a space in them
setplayerprop #c,Owner of room #v(this.id) set to #s(this.owner);
}
else setplayerprop #c,Please define a accountname after saying set owner;
}
}
if (playertouchsme) {
if (strequals(#a,Lugie)) setplayerprop #c,The room #v(this.id) is owned by #s(this.owner);
if (strequals(#a,#s(this.owner))) {
if (playery>y) playery=y-3;
else playery=y+3;
}
}

__________________

Reply With Quote
 


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 08:12 AM.


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