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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vendor system
Author Message
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #1
vendor system
Hi, can anyone tell me why this script doesnt work? after setting the price item goes to bank box not in to selling list.


Attached File(s)
.scp  sys_vendor.scp (Size: 48 KB / Downloads: 23)
10-09-2014 02:07 AM
Find all posts by this user Like Post Quote this message in a reply
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #2
RE: vendor system
i think the problem is here but not sure exactly what

[DIALOG d_remover_item1 BUTTON]
on=0
findid.i_m_vendorfala.remove

on=1
If (<distance> > 5)
src.sysmessage <def.toofar>
findid.i_m_vendorfala.remove
return 1
endif
if !(0<tag.iuid<eval <tag.current>>>)
src.sysmessage <def.noitens_forsale_inslot>
findid.i_m_vendorfala.remove
return 1
endif
local.lastp=<src.p>
local.flags=<src.region.flags>
src.region.flags=0
src.p=1,1
try tag.preco<eval <tag.current>>
try uid.<tag.iuid<eval <tag.current>>>.cont=<src.findlayer.29>
try uid.<tag.iuid<eval <tag.current>>>.tag.dispid2
try tag.iuid<eval <tag.current>>
try tag.desc<eval <tag.current>>
tag.current -= 1
src.sysmessage <def.itens_banked1>
f_ajeitar_itens
tag.itensavenda -= 1
findid.i_m_vendorfala.remove
src.bankself
src.p=<local.lastp>
src.region.flags=<local.flags>
src.update

[DIALOG d_vendor_owner_pod BUTTON]
on=0
findid.i_m_vendorfala.remove

on=1
If (<distance> > 5)
src.sysmessage <def.toofar>
findid.i_m_vendorfala.remove
return 1
endif
If !(<tag0.itensavenda>)
src.sysmessage <def.noitens_forsale>
sdialog d_vendor_owner_pod
return 1
endif
local.lastp=<src.p>
local.flags=<src.region.flags>
src.region.flags=0
src.p 1,1
serv.newitem=i_backpack
new.name=Vendor Bag
new.color=39
new.cont=<src.findlayer.29>
f_retirar_itens <new>
tag.itensavenda=0
src.sysmessage <def.itens_banked1>
findid.i_m_vendorfala.remove
src.p=<local.lastp>
src.region.flags=<local.flags>
src.update
10-09-2014 03:54 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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