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 07-11-2001, 09:40 PM
Lugie Lugie is offline
BANNED 4 EBER$%#
Lugie's Avatar
Join Date: Mar 2001
Location: MY HAUSE
Posts: 1,515
Lugie is on a distinguished road
Send a message via ICQ to Lugie Send a message via AIM to Lugie
Playerhouse Rooms

Okay, I am very dumb at NPC's. I need this NPC:

9 Different NPC'swhere if you touch the door and you're account name is Lugie, it says what room number it is, and who owns it. and if you touch it and you are not the owner, it says "You are not the owner!" all of this in chat form. and if you touch it from the bottom and you are the owner, you get warped up 2. but if you touch it from the top, you are warped down 2. And that the account "Lugie" can add and remove owners of the room with "give key 1 "account"" "give key 2 "account"" "take key 1" "take key 2" ect all the way 1-9.

thanks!
__________________
TENEIGUL

I love you.
Reply With Quote
  #2  
Old 07-11-2001, 09:47 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
umm, heh, I would do it for you but it sounds lame and I see no point
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #3  
Old 07-11-2001, 09:48 PM
Lugie Lugie is offline
BANNED 4 EBER$%#
Lugie's Avatar
Join Date: Mar 2001
Location: MY HAUSE
Posts: 1,515
Lugie is on a distinguished road
Send a message via ICQ to Lugie Send a message via AIM to Lugie
it is for my personal house. (yes i know i am picky)

i would attempt to script it, but i have no knowledge of NPC server scripting.
__________________
TENEIGUL

I love you.
Reply With Quote
  #4  
Old 07-11-2001, 09:51 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Explain it differently and i'll do it for you.to much unclear **** there
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #5  
Old 07-11-2001, 09:58 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
LOL, you didnt understand that frost? here it is:

if your name is luigie and you say left you go right but if you say right you go right anyways. Then if you say give key you actually appear in the top but if you say give key 1 then you exit. If someone says give key and there not luigie then it takes them left but if they say give key 1 it takes them right. Its really quite simple.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #6  
Old 07-11-2001, 10:05 PM
Lugie Lugie is offline
BANNED 4 EBER$%#
Lugie's Avatar
Join Date: Mar 2001
Location: MY HAUSE
Posts: 1,515
Lugie is on a distinguished road
Send a message via ICQ to Lugie Send a message via AIM to Lugie
Okay.
  • *There will be nine (9) different doors.
    *The doors will be set so that the account Lugie can add owners with ' add owner 1 "accountname" ', ' add owner 2 "accountname" ', ect. (1-9).
    *The doors will be set so that the aco**** Lugie can remove owners with ' remove owner 1 ', ' remove owner 2', ect, (1-9 also).
    *If the account Lugie touchs the door, it will say in message form: "accountname" is the owner of "room (1-9)".
    *If the owner touchs the door from the bottom, it warps their playery + 2.
    *If the owner touchs the door from the top, it warps their playery - 2.
    *If anybody else touchs the door and there is an owner, it says in message form: "This room is taken!"
    *If anybody else touchs the door and there is no owner, it says in message form: "This room is free!"
__________________
TENEIGUL

I love you.
Reply With Quote
  #7  
Old 07-11-2001, 10:07 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
hmm i think u need an NPC server
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #8  
Old 07-11-2001, 10:08 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Quote:
Originally posted by ownerofbabylon
hmm i think u need an NPC server
true,true
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #9  
Old 07-11-2001, 10:10 PM
Lugie Lugie is offline
BANNED 4 EBER$%#
Lugie's Avatar
Join Date: Mar 2001
Location: MY HAUSE
Posts: 1,515
Lugie is on a distinguished road
Send a message via ICQ to Lugie Send a message via AIM to Lugie
yes, i know. that is why i dont know how to script it and i am asking it here.
__________________
TENEIGUL

I love you.
Reply With Quote
  #10  
Old 07-15-2001, 01:49 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
you won't need npcserver, just a whole lot of server strings
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #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
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 03:05 PM.


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