• Creating an NPC Shop
    16 replies, posted
Okay, i've seen loads of people asking how to create an NPC Shop. I've gone to the trouble (It wasn't actually that much really) of creating a tutorial page on the Wiki. [URL]http://wiki.garrysmod.com/?title=NPC_Shop_Tutorial[/URL] All is explained in there, so please, either refer them to this thread, or to that page of the wiki. This will cut out the repeated question of creating usable NPC's :eng101:
pfftt ..... i dont see why people need this , all it is is one single hook .... and why put this in the newbie questions? BTW: i isn trollin, so i am gonna say thx
that tutorial isnt very good, you should do it propperly by using usermessages and KeyPress [editline]01:10PM[/editline] oh and traces with special cool masks that goes through glass
one sec, posting mine
It's related to the Newbie Questions section, because people usually just go straight to newbie questions if they want to ask something like this, so they'd most likely miss this thread if I put in the main Lua Scripting section.
[QUOTE=HeavyMtl123;22389346]Okay, i've seen loads of people asking how to create an NPC Shop. I've gone to the trouble (It wasn't actually that much really) of creating a tutorial page on the Wiki. [URL]http://wiki.garrysmod.com/?title=NPC_Shop_Tutorial[/URL] All is explained in there, so please, either refer them to this thread, or to that page of the wiki. This will cut out the repeated question of creating usable NPC's :eng101:[/QUOTE] :hurr: yay.
part of mah shop lady in mah lobby: [LUA] function ENT:AcceptInput( name, activator, caller, data ) if ( caller:IsPlayer() ) then umsg.Start("open_shoppanel", caller) umsg.End() end end [/LUA] [editline]01:12PM[/editline] you broke ma auto merge!!
There, edited it a bit, it now uses usermessages instead of concommands [editline]12:29PM[/editline] I've edited it to add sub-sections to it for the Serverside, Clientside, and Shared
If the kids that made the posts asking for help making a NPC shop could search they wouldnt be making posts in the first place, since they cant they will continue to make posts and I suggest you comment the code so they can learn what each line is doing.
You ninja, I've been meaning to do one of these for a while now. I corrected some errors you had in it.
Thankyou Crazy, much appreciated, and Flawless, I will get on commenting
[QUOTE=HeavyMtl123;22396797]Thankyou Crazy, much appreciated, and Flawless, I will get on commenting[/QUOTE] [quote=Wiki]self.Entity:SetHullType( HULL_HUMAN ) --Skull size ( In this case, a Human size )[/quote] Wait... Hull is the outer structure of the entity. Not the skull size? I fixed that comment.
I looked it on the wiki, it defined it as skull size. [editline]08:00PM[/editline] Also, it is now fully commented
[QUOTE=HeavyMtl123;22397080]Also, it is now fully commented[/QUOTE] Except most of it was wrong or "I don't know what this does". :wink:
[QUOTE=Crazy Quebec;22398579]Except most of it [B]was[/B] wrong or "I don't know what this does". :wink:[/QUOTE] Past tense baby [editline]09:16PM[/editline] Also, Crazy Quebec you have been added to Contributors.
[QUOTE=HeavyMtl123;22398706]Past tense baby [editline]09:16PM[/editline] Also, Crazy Quebec you have been added to Contributors.[/QUOTE] Yup, and you misspelled my name so I'd rather not even be on the list. :wink: Because, why me more then anyone else who helped edit the page?
I didn't mispell your name did I?
Sorry, you need to Log In to post a reply to this thread.