Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-22-2013, 01:54 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It could be possible to just add a normal shop npc and when you click/grab it then it's opening a GUI. You would just need normal triggerclient() for that.
Reply With Quote
  #2  
Old 12-22-2013, 04:09 PM
JohnnyChimpo JohnnyChimpo is offline
Registered User
JohnnyChimpo's Avatar
Join Date: Jun 2004
Posts: 105
JohnnyChimpo is on a distinguished road
Quote:
Originally Posted by Stefan View Post
It could be possible to just add a normal shop npc and when you click/grab it then it's opening a GUI. You would just need normal triggerclient() for that.
Right because you'd be using the onActionRightClick/onPlayerTouchsme, which focuses that player allowing you to reference that player specifically. But how about a shop NPC ( level NPC, connected to a class), wants to lay items out in the level (putnpc2). If you want to show everyone thats easy, you just leave it at that. However if you want to drop items, individually for each player, so say, there is a set w,x,y,z of items. Player 1 walks in and the only items on the table he/she will see, is w,x. However in that same moment, player 2 walks in but player 2 will see y,z. And NOT w,x. OR more strictly they will see exactly what they should and nothing that they shouldnt. Is this possible?
Reply With Quote
  #3  
Old 12-29-2013, 03:06 AM
Sage_Shadowbane Sage_Shadowbane is offline
Graal Developer
Sage_Shadowbane's Avatar
Join Date: Mar 2004
Posts: 585
Sage_Shadowbane will become famous soon enough
Quote:
Originally Posted by JohnnyChimpo View Post
Right because you'd be using the onActionRightClick/onPlayerTouchsme, which focuses that player allowing you to reference that player specifically. But how about a shop NPC ( level NPC, connected to a class), wants to lay items out in the level (putnpc2). If you want to show everyone thats easy, you just leave it at that. However if you want to drop items, individually for each player, so say, there is a set w,x,y,z of items. Player 1 walks in and the only items on the table he/she will see, is w,x. However in that same moment, player 2 walks in but player 2 will see y,z. And NOT w,x. OR more strictly they will see exactly what they should and nothing that they shouldnt. Is this possible?
99% sure that Tim's method would work for what you're trying to do.
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 11:47 AM.


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