Thread: Shop NPC
View Single Post
  #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