The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Player Vendor System
Author Message
nobody2k
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Feb 2015
Reputation: 0



Post: #1
Problem with Player Vendor System
Hi all!

I just started to script an own Player-vendor system, nothing special, just an easy to use system for max 10 items.

Actually, it's based on an NPC "c_vendor" which I created, the Gump appears when I DClick on the NPC.
I want to place the items inside the "vendor container" (the thing that opens up when you say "stock", it's layer 26) and store the Serial of every item in an own tag (TAG is stored at the NPC, so it's "tag.item1", "tag.item2", "tag.item3",... )

Now, when the GUMP shows up I want to display all the items (their name, amount an price).
I tried that using <SERV.ITEMDEF.<TAG.item1>.NAME> ... but it only shows "0"^^
Using EVAL, gives the the same name "0", which is actually NOT the name of a mark scroll (in my example)...

Could someone please help me, I just ran out of ideas Smile

thx in advance!

greeting, Chris
02-27-2015 06:53 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Problem with Player Vendor System - nobody2k - 02-27-2015 06:53 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)