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 Shop HELP
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #11
RE: Vendor Shop HELP
tag.override.value would be great.

this is the best script I could 'muster' up, it sendpacket doesn't work at all, not sure why exactly, here it is:
Code:
[function testbuy]
sysmessage Buy from who?
targetf f_testbuy

[function testbuy]
if (<argo.ischar>)
    if (<argo.npc>==brain_vendor)
        if (<argo.findlayer.26.rescount>)
            forcont <argo.findlayer.26>
                if (<tag0.override.value>)
                    local.x += 1
                    local.id<dlocal.x>.value=<tag0.override.value>
                    local.id<dlocal.x>.name=<name>
                elseif (<value>)
                    local.x += 1
                    local.id<dlocal.x>.value=<value>
                    local.id<dlocal.x>.name=<name>
                endif
            endfor
            if (<local.x>)
                for x 1 <local.x>
                    if (strmatch(<local.packet>,0))
                        local.packet=d<local.id<dlocal.x>.value> <eval strlen(<local.id<dlocal.x>.name>)> <char_to_asc <local.id<dlocal.x>.name>>
                    else
                        local.packet=<local.packet> d<local.id<dlocal.x>.value> <eval strlen(<local.id<dlocal.x>.name>)> <char_to_asc <local.id<dlocal.x>.name>>
                    endif
                endfor
                sendpacket 074 <totalargs 074 0 d<targ.uid> <local.x> <local.packet>> d<targ.uid> <local.x> <local.packet>
            endif
        else
            argo.speak i have nothing to sell.
        endif
    endif
endif

[function char_to_asc]
if !(<isempty <args>>)
    local.x=<eval strlen(<args>)>
    local.args=<args>
    while (<local.x>)
        if (strmatch(<local.return>,0))
            local.return=<asc <strsub 0 1 <local.args>>>
        else
            local.return=<local.return> <asc <strsub 0 1 <local.args>>>
        endif
        local.args=<strsub 1 0 <local.args>>
        local.x -= 1
    endwhile
endif
return <local.return>

[function totalargs]
if !(<isempty <args>>)
    local.args=<args>
    while !(strmatch(<local.args>,0))
        local.x += 1
        local.args=<streat <local.args>>
    endwhile
endif
return <dlocal.x>

[eof]

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
09-24-2012 02:41 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Vendor Shop HELP - Extreme - 09-23-2012, 01:03 AM
RE: Vendor Shop HELP - Skul - 09-23-2012, 03:30 AM
RE: Vendor Shop HELP - Extreme - 09-23-2012, 04:34 AM
RE: Vendor Shop HELP - Extreme - 09-24-2012, 12:17 PM
RE: Vendor Shop HELP - Skul - 09-24-2012, 12:28 PM
RE: Vendor Shop HELP - Extreme - 09-24-2012, 12:31 PM
RE: Vendor Shop HELP - Skul - 09-24-2012, 12:42 PM
RE: Vendor Shop HELP - Extreme - 09-24-2012, 12:51 PM
RE: Vendor Shop HELP - Skul - 09-24-2012, 12:57 PM
RE: Vendor Shop HELP - Extreme - 09-24-2012, 01:09 PM
RE: Vendor Shop HELP - Skul - 09-24-2012 02:41 PM
RE: Vendor Shop HELP - Extreme - 09-24-2012, 03:14 PM
RE: Vendor Shop HELP - Skul - 09-24-2012, 03:59 PM
RE: Vendor Shop HELP - Skul - 09-26-2012, 02:13 PM
RE: Vendor Shop HELP - Skul - 09-26-2012, 08:18 PM
RE: Vendor Shop HELP - Extreme - 09-27-2012, 01:22 AM
RE: Vendor Shop HELP - Skul - 09-27-2012, 10:33 AM
RE: Vendor Shop HELP - Extreme - 09-27-2012, 12:36 PM

Forum Jump:


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