Graal Forums

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

Lit 08-29-2002 12:49 PM

Shop NPC
 
Trying to make a shop NPC for a account mabey a guild tag named Shop Keeper or something make it so it can be sold to an account name of some sort i really cant figure this out right now i have a simple hide and show script but it sucks please help me.

joseyisleet 08-29-2002 05:10 PM

use like if (strequals(#g,Guild name here) && rest of this poop){
actions;
}
and then for the selling of it or w/e your talking about im guessing Get player i dont know getplayer but ive seen it been used x.x Just a guess.
-Howard

emortylone 08-29-2002 11:03 PM

Quote:

Originally posted by joseyisleet
use like if (strequals(#g,Guild name here) && rest of this poop){
actions;
}
and then for the selling of it or w/e your talking about im guessing Get player i dont know getplayer but ive seen it been used x.x Just a guess.
-Howard

You can't start it with (strequals) because it isn't really an action. If you put if (playerchats && strequals(#g,Shop Keeper)) then it would read it because Playerchats starts. Here is what happens w/ getnpc
NPC Code:

with (getnpc(acc name))
{ actions;
addweapon [name]; is what you'd want I guess
}


but it is inside if (playerchats etc)
---Shifter

Spark910 08-30-2002 12:47 AM

Quote:

Originally posted by emortylone


You can't start it with (strequals) because it isn't really an action. If you put if (playerchats && strequals(#g,Shop Keeper)) then it would read it because Playerchats starts. Here is what happens w/ getnpc
NPC Code:

with (getnpc(acc name))
{ actions;
addweapon [name]; is what you'd want I guess
}


but it is inside if (playerchats etc)
---Shifter

There you go again. I think you will find that hes not that good of a scripter to understand that. The if (playerchats && strequals(#g,Shop Keeper)) will do fine for him right now I think.

emortylone 08-30-2002 02:54 AM

If he can't understand the script, then he has no business with it =/ I like people to learn to script themselves, you don't do that by just getting scripts that others have made and using them. Give him vauge concepts, let HIM learn it... that is the best way. It is better to teach a person to script once, than have him need scripts everyday.
---Shifter

joseyisleet 08-30-2002 07:52 AM

Mm shiftys right, A wise man i guess once said 'you can give a man a fish, and he's allright for one day but if you teach him to fish he's set for life', lel i dont think the strequals(#g,) matter shifter and anyways wouldnt it be more suitable to go first cause it'd have to check for the players tag and then do the other stuff, just a guess.
-Howard

Lit 08-30-2002 01:09 PM

Shifty this is for anarchy so please help..........

Lit 08-30-2002 01:12 PM

HMMM actuly i have a if (playerchats && strequals(#c,Buy Fire Spin) && playerupees=1000;) {
toweapons Fire spin;
set gotfirespin;
playerrupees=-1000;
}
if (weaponfired) {
Whatever i got;
}
u see im not that good but i dont suck........

emortylone 08-30-2002 11:07 PM

LOL, if it's for Anarchy just look me up on AIM! x.X LOLz. Put the point is, I was trying to remember that quote =P I couldn't remember what it was, but yes, it is VERY true.
---Shifter


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

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