- Joined
- May 18, 2005
- Messages
- 109
- Reaction score
- 50
Hello Ragezoners
I'm working with XTeam Lua scripting API and I have few questions because I couldn't figure some things out with official documentation and by experimenting.
Maybe someone who is more experienced will be able to help me.
1. EventItemBag Special Value
There are various options to add or drop an item in the API. One of it allows the usage of EventItemBag. From what I understand, I can use it to define rewards for completing something (as an example - a custom event).
The documentation states as follow:
Same for:
I'm unable to understand what is this EventItemBag SpecialValue.
When I check the server files, I have EventItemBagManager which contains column "SpecialValue" but it doesn't seem to correlate with the special value I provide to the function. No matter what value I enter, I'm receiving various items (exc Hurricane Set equivalents) which I could not identify from which EventItemBag it comes from.
Using this feature is important to me as EventItemBags allow me to specify the option value to send it to Gremory Case of the player instead of dropping it on the ground or doing a complicated inventory space check.
2. Timer function
There is a listed function in the documentation for Timers.
I experimented with it a bit but I was unable to understand the parameters and could not make it work.
No matter what I provide to the cValue (time in seconds), the timer shows up for a second and dissapears.
I also don't know what is Timer flag param supposed to do.
So a couple of questions:
a. What Timer type values are available?
b. What is the Timer flag and what does it do?
c. Why the timer dissapears immediately and it doesnt countdown when providing e.g. 10s to Time in seconds param. Does it have to run on some kind of script loop?
3. User Action Send
There is a function for user actions:
Does anyone have a listing of available action in this API call?
I'm working with XTeam Lua scripting API and I have few questions because I couldn't figure some things out with official documentation and by experimenting.
Maybe someone who is more experienced will be able to help me.
1. EventItemBag Special Value
There are various options to add or drop an item in the API. One of it allows the usage of EventItemBag. From what I understand, I can use it to define rewards for completing something (as an example - a custom event).
The documentation states as follow:
Code:
ItemDrop(aIndex,aValue,bValue,cValue,dValue)
aIndex = User index.
aValue = Map number.
bValue = Map position X.
cValue = Map position Y.
dValue = EventItemBag SpecialValue.
Drop at the chosen position an item from an EventItemBag.
Same for:
Code:
ItemGive(aIndex,aValue)
aIndex = User index.
aValue = EventItemBag SpecialValue.
Insert to the user inventory an item from an EventItemBag.
I'm unable to understand what is this EventItemBag SpecialValue.
When I check the server files, I have EventItemBagManager which contains column "SpecialValue" but it doesn't seem to correlate with the special value I provide to the function. No matter what value I enter, I'm receiving various items (exc Hurricane Set equivalents) which I could not identify from which EventItemBag it comes from.
Using this feature is important to me as EventItemBags allow me to specify the option value to send it to Gremory Case of the player instead of dropping it on the ground or doing a complicated inventory space check.
2. Timer function
There is a listed function in the documentation for Timers.
Code:
TimerStartSend(aIndex,aValue,bValue,cValue)
aIndex = User index.
aValue = Timer type.
bValue = Timer flag.
cValue = Time in seconds.
Show a timer at selected player screen (Season13+ ONLY).
I experimented with it a bit but I was unable to understand the parameters and could not make it work.
No matter what I provide to the cValue (time in seconds), the timer shows up for a second and dissapears.
I also don't know what is Timer flag param supposed to do.
So a couple of questions:
a. What Timer type values are available?
b. What is the Timer flag and what does it do?
c. Why the timer dissapears immediately and it doesnt countdown when providing e.g. 10s to Time in seconds param. Does it have to run on some kind of script loop?
3. User Action Send
There is a function for user actions:
Code:
UserActionSend(aIndex,bIndex,aValue)
aIndex = User index.
bIndex = Target user index.
aValue = Action number.
User performs the chosen action.
Does anyone have a listing of available action in this API call?