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-28-2002, 10:17 AM
Artificial_Sweetener Artificial_Sweetener is offline
Registered User
Artificial_Sweetener's Avatar
Join Date: Mar 2002
Posts: 758
Artificial_Sweetener is on a distinguished road
Another Question =X

Ok I'm working on a bar script and I just need help with one thing. I'm trying to make it where you have to touch a npc and say something like 'pour beer' and if that player has a bartender tag..
This is what I got so far:
NPC Code:

// NPC made by Wryoko Durime
if (playertouchsme&&strequals(#g,Bartender)&&){
Command;
}


I need to make it where if the player say's Pour Beer it will attach a beer npc on the player.. I can probally figure out the attachment part but I really could use some help with the other part. Thanks ..
__________________
OOC: Scarlett (Head Auctioneer)
IC: Queen Arianna Durime of (Inra)
Reply With Quote
  #2  
Old 06-28-2002, 10:19 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
Re: Another Question =X

Quote:
Originally posted by Artificial_Sweetener
Ok I'm working on a bar script and I just need help with one thing. I'm trying to make it where you have to touch a npc and say something like 'pour beer' and if that player has a bartender tag..
This is what I got so far:
NPC Code:

// NPC made by Wryoko Durime
if (playertouchsme&&strequals(#g,Bartender)&&){
Command;
}


I need to make it where if the player say's Pour Beer it will attach a beer npc on the player.. I can probally figure out the attachment part but I really could use some help with the other part. Thanks ..
// NPC made by Wryoko Durime
if (playertouchsme&&strequals(#g,Bartender)&&){
setani poorbeer,;thats what id use
}
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
Reply With Quote
  #3  
Old 06-28-2002, 10:21 AM
Artificial_Sweetener Artificial_Sweetener is offline
Registered User
Artificial_Sweetener's Avatar
Join Date: Mar 2002
Posts: 758
Artificial_Sweetener is on a distinguished road
Noo I need to make it so if he says pour beer.. I'm going to add in gani's later.. I just need to get the base of the script done
__________________
OOC: Scarlett (Head Auctioneer)
IC: Queen Arianna Durime of (Inra)
Reply With Quote
  #4  
Old 06-29-2002, 06:36 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
okay, lets see


im kinda of confused about what you want, but this is what i get out of it

NPC Code:

if (playertouchsme && strequals(#g,Bartender)) {
if (strequals(#c,Pour Beer)) {
// Bla bla bla
}
}



note: i put the Pour Beer part inside in case you want to add more commands, just put them inside, its a lot easier than doing
NPC Code:

if (playertouchsme && strequals(#g,Bartender) && strequals(#c,Pour Beer)) {
// Bla bla bla
}

if (playertouchsme && strequals(#g,Bartender) && strequals(#c,Mix Motolov ****tail)) {
// Bla bla bla
}



=D
__________________
[signature]insert here[/signature]
Reply With Quote
  #5  
Old 06-30-2002, 09:44 PM
Artificial_Sweetener Artificial_Sweetener is offline
Registered User
Artificial_Sweetener's Avatar
Join Date: Mar 2002
Posts: 758
Artificial_Sweetener is on a distinguished road
Thanks man that helps me alot
__________________
OOC: Scarlett (Head Auctioneer)
IC: Queen Arianna Durime of (Inra)
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 08:32 AM.


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