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 08-29-2002, 12:49 PM
Lit Lit is offline
Registered User
Join Date: Jul 2002
Location: none
Posts: 41
Lit is on a distinguished road
Send a message via AIM to Lit Send a message via Yahoo to Lit
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.
Reply With Quote
  #2  
Old 08-29-2002, 05:10 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #3  
Old 08-29-2002, 11:03 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #4  
Old 08-30-2002, 12:47 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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.
Reply With Quote
  #5  
Old 08-30-2002, 02:54 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #6  
Old 08-30-2002, 07:52 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #7  
Old 08-30-2002, 01:09 PM
Lit Lit is offline
Registered User
Join Date: Jul 2002
Location: none
Posts: 41
Lit is on a distinguished road
Send a message via AIM to Lit Send a message via Yahoo to Lit
Shifty this is for anarchy so please help..........
Reply With Quote
  #8  
Old 08-30-2002, 01:12 PM
Lit Lit is offline
Registered User
Join Date: Jul 2002
Location: none
Posts: 41
Lit is on a distinguished road
Send a message via AIM to Lit Send a message via Yahoo to Lit
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........
Reply With Quote
  #9  
Old 08-30-2002, 11:07 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
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 12:21 AM.


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