• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[¡Help!] Request Explication

Obsdark

Member
Joined
Sep 25, 2011
Messages
213
Reaction score
9
Ok, i know this isn't so hard but i like to understand it once and for all because i have a severe confusion about it, because i'll never know how to load the script properly.

Code:
   	<action actionid="2000" event="script" value="quests/system.lua"/>
	<action actionid="2001" event="script" value="quests/system.lua"/>
	<action actionid="9898" event="script" value="quests/LeversCastle1.lua"/>
	<action uniqueid="3216" event="script" value="quests/Castle4.lua"/>

i know how to script, but i don't know how to load them in the action.XML, so my doubts are this ones;

First of all, what make the diference between itemid, uniqueid and actionid, in deep plz, or at least with clear examples for know clearly what's the diference between them

Secondly, what i can put in the number part, and from that comes another the question:

2A) how i know what is the id number of the script who i must insert, i mean of what item/unique/action id's put there, of course i'm thinking on scripts who have more than one item or more than one unique id in the script, (i don't know how to use actionid at all so...)

and of course too,

- when i must put more than one item there
- and how i put them?
- is even possible put more than one id number there?
- can i put other things too?
- how and when i must do it?

2B) Somebody can explain me the "Script" part, for what it is and how it works?

I really Apreciate any help

i Give Rep++

¡Bless & Cheers up!
(Y)(Y)

-Obsdark-
 
Well this is too much to explain but I can tell you that :
Item id : each item have its own id (you can't change this id), golden armor is of id 2446 so for example to make a script work with any golden armor you use itemid

you can assign multiple itemid for one script this is useful if you want for example all items with itemid (2246,2160,2234) to work with current script
XML:
<action itemid="2246;2160;2234" event="script" value="other/destroy.lua"/>
actionid :
1 - it is something more, a more identifying method ...

2- so lets say you need like group of different items to work with script like items given from certain quest
lets say you have a quest that gives [demon armor, golden armor, leather boots ], you want these 3 items (only those 3 items which were won from this certain event) to give 100 hp when a player click on them to make that :

a) you will give those items a actionid first when they are created
b) you will make a action script with this action id to give 100 hp when it is used
XML:
<action actionid="1006" event="script" value="change_hp.lua"/>

You can use multiple actionids too in the same way as items ids.

Uniqueids : from its name it is a unique id that you give to unique item to make this item make something no other item do, this should be assigned to one items only or else you will get console error

lets say we have a lever on the ground when you use it you remove a rock that cannot be removed with nyother way than using this lever then you would give that lever a uniqueid and then make a action script to perform that work when lever is used
XML:
<action uniqueid="1006" event="script" value="remove_x_rock.lua"/>

It would be useless to have multiple unique id in one script as unique id is for one item to do a particular unique job no other item make so to have multiple items doing the same jobs you should give them a actionid not a unique id.


Hope you can understand somthing!!
 
Back
Top