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-nmm6 (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-nmm6 (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-nmm6 (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
storing / filtering massive items
Author Message
Skul
Master
**

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



Post: #31
RE: storing / filtering massive items
use a tag
Code:
on=@create
tag.maxuses=10
tag.uses=10

on=@click
message <dtag0.uses>/<dtag0.maxuses> uses remaining

on=@targon_item
tag0.uses -= 1
if (<dtag0.uses> < 1)
  remove
endif

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 07-13-2014 04:32 PM by Skul.)
07-13-2014 04:32 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #32
RE: storing / filtering massive items
UsesCur UsesMax

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-13-2014 11:10 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #33
RE: storing / filtering massive items
Thanks!
07-14-2014 01:59 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #34
RE: storing / filtering massive items
Is it possible to overide the skillcap of a skill of a specific character?.

Code:
ON=@Dclick
if bla
src.skillclass.skill_key = N
endif
(This post was last modified: 07-14-2014 10:30 AM by kn4tseb.)
07-14-2014 10:19 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #35
RE: storing / filtering massive items
Yes, there is.
I don't know how but look for Powerscrolls on Cloud_BR scriptpack or elsewhere.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-15-2014 06:58 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #36
RE: storing / filtering massive items
will do, thank you..
one more thing...
how can i get a number of argv's skipping another one?
example
Code:
args=1,2,3,4,5,6,7,8,9,10
local.argv1=<argv[5]>
local.argv2= // store the rest of the argvs, from <argv[0]> to <argv[4]> and <argv[6]> to <argv[9]>

//or something like..
local.rand=<r0,9>
local.argv1=<argv[<eval <local.rand>>]>
local.argv2= // all the rest ????
would be good to have a variable that gets the position of an argv so it could be strsub'ed >.<
or somehow get random ranged values: <r1,5-7,9> or even better would be just to missread an indicated argv[n]

doing this:
Code:
args=a,b,c,d,e,f,g,h,i,j
   local.argvrand=<r0,9>
   local.argv1=<argv[<eval <local.argvrand>>]>
   if (<local.argvrand> > 0) && (<local.argvrand> < 9)
   local.argvrand21=<r0,<eval <local.argvrand>-1>>
   local.argvrand22=<r<eval <local.argvrand>+1>,9>
   elif (<local.argvrand> == 0)
   local.argvrand21=<r1,4>
   local.argvrand22=<r5,9>
   elif (<local.argvrand> == 9)
   local.argvrand21=<r0,4>
   local.argvrand22=<r5,9>
   endif

// This would work with two random argv[n]'s, but if i want to add a third or a fourth or more random argv[n]'s not equal to the already taken would be like tons of IF's
// the idea is to exclude or skip an already stored argv[n] so i can store another random argv[n]'s without reading the ones already stored :S

Thank you.
(This post was last modified: 07-15-2014 03:05 PM by kn4tseb.)
07-15-2014 10:20 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #37
RE: storing / filtering massive items
If you want to store only the 5th arg, why not put it in first and use streat to get the other ones??
You can also use local.bla argv0..,argv1..,argv2..,argv3..,argv4..,argv6..,argvn..

Also...

ARGS = 1,2,3,4,5,6,7,8,9,10
local.argvrand=<r0,9>
FOR X 0 9
IF <dLOCAL.X> != <dLOCAL.ARGVRAND>
LOCAL.ARGS .= <ARGV[<dLOCAL.X>]>
ENDIF
ENDFOR

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-16-2014 02:19 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #38
RE: storing / filtering massive items
because i didnt wanted to store the fifht, was an example, i wanted to store a random nth =]
thats why i couldnt use local.bla= rest of argvs

but you might have answered my question in the last code, gonna try it.
whats the difference between: local.args = bla
and local.args .= bla // with that dot before equal?

THank you!! Wink
(This post was last modified: 07-16-2014 04:47 AM by kn4tseb.)
07-16-2014 03:53 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #39
RE: storing / filtering massive items
Okey... thanks Extreme, i finnally got it xd

Code:
ARGS = 1,2,3,4,5,6,7,8,9,10
   local.argvrand=<r0,9>
   local.argv1 = <argv[<local.argvrand>]>
   FOR X 0 9
      IF <dLOCAL.X> != <dLOCAL.ARGVRAND>
      LOCAL.ARGS .=, <ARGV[<dLOCAL.X>]>
      ENDIF
   ENDFOR
   args = <strsub 3 <eval strlen(<local.args>)> <local.args>>
   local.argvrand2=<r0,8>
   local.argv2 = <argv[<local.argvrand2>]>
   FOR X 0 8
      IF <dLOCAL.X> != <dLOCAL.ARGVRAND2>
      LOCAL.ARGS2 .=, <ARGV[<dLOCAL.X>]>
      ENDIF
   ENDFOR
   args = <strsub 3 <eval strlen(<local.args2>)> <local.args2>>
   local.argvrand3=<r0,7>
   local.argv3 = <argv[<local.argvrand3>]>
(This post was last modified: 07-16-2014 06:10 AM by kn4tseb.)
07-16-2014 05:41 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #40
RE: storing / filtering massive items
Congratulations!

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-16-2014 06:20 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Extreme's post
Post Reply 


Forum Jump:


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