Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Another Question =X (https://forums.graalonline.com/forums/showthread.php?t=32461)

Artificial_Sweetener 06-28-2002 10:17 AM

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 .. :(

Legondary_MyTH 06-28-2002 10:19 AM

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
}

Artificial_Sweetener 06-28-2002 10:21 AM

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

screen_name 06-29-2002 06:36 AM

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

Artificial_Sweetener 06-30-2002 09:44 PM

Thanks man that helps me alot :)


All times are GMT +2. The time now is 08:23 AM.

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