SphereCommunity
storing / filtering massive items - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: storing / filtering massive items (/Thread-storing-filtering-massive-items)

Pages: 1 2 3 4


RE: storing / filtering massive items - kn4tseb - 07-09-2014 11:24 AM

i did it this way xD

dtext x y color <STRTOUPPER <STRSUB 0 1 <serv.itemdef.<local.argv>.name>>><strsub 1 <eval STRLEN(<serv.itemdef.<local.argv>.name>)> <serv.itemdef.<local.argv>.name>>


RE: storing / filtering massive items - Extreme - 07-09-2014 11:36 AM

Hahahaha if you think I worried about brazilian team, I have to say SORRY, I am not.
HAHHAHAHA
The best cup of the cups! The host losing by 7x1 is awesome! Suck Dilma(president)!


RE: storing / filtering massive items - kn4tseb - 07-09-2014 12:57 PM

im not saying if you are worried or not, but i do sorry because as a southamerican i really wanted them to win this match and a southamerican team winning the cup, no matter if it is brazil or argentina, and its nothing against euro teams, but they have had the last two ones... whatever happens now in social matters will be a consecuense for what some people did good or wrong, brazil is an awesome country with awesome people, a God's beloved country. Justice will be brought up.


RE: storing / filtering massive items - Extreme - 07-09-2014 01:08 PM

Good words Big Grin


RE: storing / filtering massive items - kn4tseb - 07-09-2014 02:51 PM

is it possible to make a reference from a Dialog text to its dialog button?
for example
[dialog mydialog]
blabla
local.bla=<SOMETHINGTOSTORE>
dtext x y hue <local.bla>
button x y gump1 gump2 1 0 id

[dialog mydialog button]
ON=id
if <local.bla> <--------
code
endif


there is no arguments for texts/dtexts.... all i can think for now is a textexntrylimited limited to 0, but dunno if that would work..
is it possible to make something to access an specific text/dtext ??? like adding ids for them too?

SDIALOG dialog_id, page, parameters

what are the parameters for sdialogs?


RE: storing / filtering massive items - kn4tseb - 07-10-2014 03:01 AM

Okey i think its not possible >.< anyone please??? :< from [dialog mydialog button]
ONButtton=id i need to take a reference to a text/dtext. and i cant figure it


RE: storing / filtering massive items - Extreme - 07-10-2014 05:08 AM

When you use dtextentry you set the ID, right? Its the <ARGTXT[ID]>.
If you use 'dtextentry bla bla <somethingstostore>'
When you press the button <ARGTXT[ID]> will be the <somethingtostore>

Parameters on dialog only for PAGE redirection.


RE: storing / filtering massive items - kn4tseb - 07-10-2014 10:09 AM

Okey, thank you ! Wink


RE: storing / filtering massive items - kn4tseb - 07-12-2014 05:47 AM

guys i need help again Confused

community scripts include sphere_items_armor_color.scp

i need to find the way to store for example the baseid of all items with the word ROSE as itemdef/defname
as they are custom made items, their ID is for the inhereted base item, so i cannot use the ID number to search them in a FOR loop (if is possible, i dont know how).

could you guys please help me a bit?

for example
IF STRMATCH(*rose*,<serv.??????>) // due that the baseid is what i am looking for <serv.itemdef.xxxxxxx> wont work cause thats what im trying to store xdd


i dont know if i made myself clear, hope i did.
Thank you very much!


RE: storing / filtering massive items - Skul - 07-12-2014 06:05 AM

Code:
<serv.itemdef.<xx>.defname> //should display the i_item_defname