zerghel
Tsuni
- Joined
- Jul 1, 2008
- Messages
- 299
- Reaction score
- 9
hello guy i want to share Majesty's unwrap system from OTServ Br, with more id's for OTX 3.10
Lua:
local constructionKits = {
[36045] = 36045, [26376] = 26376, [26061] = 26061, [26074] = 26074, [33493] = 33493,
[29398] = 29398, [29354] = 29354, [36790] = 36790, [32147] = 32147, [36777] = 36777,
[36768] = 36768, [36780] = 36780, [33519] = 33519, [29401] = 29401, [29394] = 29394,
[26351] = 26351, [36043] = 36043, [32043] = 32043, [36781] = 36781, [36782] = 36782,
[32260] = 32260, [36783] = 36783, [29024] = 29024, [29352] = 29352, [36518] = 36518,
[32398] = 32398, [32036] = 32036, [29397] = 29397, [32264] = 32264, [32266] = 32266,
[29407] = 29407, [36558] = 36558, [33501] = 33501, [33499] = 33499, [29357] = 29357,
[27899] = 27899, [27903] = 27903, [33175] = 33175, [32047] = 32047, [29314] = 29314,
[29347] = 29347, [29339] = 29339, [29350] = 29350, [29341] = 29341, [29348] = 29348,
[36786] = 36786, [26088] = 26088, [29387] = 29387, [36052] = 36052, [36055] = 36055,
[36044] = 36044, [26379] = 26379, [26087] = 26087, [29359] = 29359, [36029] = 36029,
[36522] = 36522, [36528] = 36528, [36515] = 36515, [26100] = 26100, [36053] = 36053,
[36049] = 36049, [36056] = 36056, [29317] = 29317, [36514] = 36514, [36540] = 36540,
[26368] = 26368, [32023] = 32023, [32049] = 32049, [33515] = 33515, [27843] = 27843,
[35042] = 35042, [35039] = 35039, [27103] = 27103, [26096] = 26096, [26092] = 26092,
[35023] = 35023, [35038] = 35038, [35041] = 35041, [35027] = 35027, [35035] = 35035,
[32397] = 32397, [33491] = 33491, [27084] = 27084, [26347] = 26347, [35031] = 35031,
[36046] = 36046, [33495] = 33495, [33497] = 33497, [27851] = 27851, [27087] = 27087,
[27088] = 27088, [36020] = 36020, [36027] = 36027, [32045] = 32045, [26353] = 26353,
[26077] = 26077, [32394] = 32394, [26367] = 26367, [36026] = 36026, [36022] = 36022,
[32143] = 32143, [32040] = 32040, [26079] = 26079, [26070] = 26070, [26065] = 26065,
[33505] = 33505, [27085] = 27085, [33513] = 33513, [35021] = 35021, [27889] = 27889,
[36031] = 36031, [26363] = 26363, [29388] = 29388, [33507] = 33507, [33509] = 33509,
[32145] = 32145, [29390] = 29390, [26369] = 26369, [29022] = 29022, [36530] = 36530,
[32046] = 32046, [32259] = 32259, [26106] = 26106, [32021] = 32021, [29409] = 29409,
[32046] = 32046, [32259] = 32259, [26106] = 26106, [32021] = 32021, [36047] = 36047,
[27892] = 27892, [32390] = 32390, [26098] = 26098, [26366] = 26366, [32032] = 32032,
[32018] = 32018, [27893] = 27893, [36054] = 36054, [36057] = 36057, [32038] = 32038,
[36772] = 36772, [32028] = 32028, [26312] = 26312, [32396] = 32396, [32396] = 32396,
[36299] = 36299, [29343] = 29343, [32020] = 32020, [36538] = 36538, [26089] = 26089,
[27850] = 27850, [27728] = 27728, [26075] = 26075, [26059] = 26059, [26083] = 26083,
[26073] = 26073, [26077] = 26077, [26063] = 26063, [26079] = 26079, [26067] = 26067,
[26356] = 26356, [26349] = 26349, [26358] = 26358, [26354] = 26354, [27897] = 27897,
[27905] = 27905, [27901] = 27901, [27893] = 27893, [27892] = 27892, [27894] = 27894,
[27895] = 27895, [27896] = 27896, [26109] = 26109, [26110] = 26110, [26111] = 26111,
[26371] = 26371, [26372] = 26372, [26373] = 26373, [26374] = 26374, [26375] = 26375,
[27084] = 27084, [27085] = 27085, [27086] = 27086, [27087] = 27087, [27088] = 27088,
[27089] = 27089, [27090] = 27090, [27091] = 27091, [26370] = 26370, [26347] = 26347,
[26364] = 26364, [26098] = 26098, [26107] = 26107, [26100] = 26100, [27100] = 27100,
[27889] = 27889, [26094] = 26094, [26090] = 26090, [27102] = 27102, [27887] = 27887,
[26057] = 26057, [26055] = 26055, [26104] = 26104, [26105] = 26105, [26106] = 26106,
[26379] = 26379, [26380] = 26380, [26381] = 26381, [36349] = 36349, [36532] = 36532
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local kit = constructionKits[item.actionid]
if not kit then
return false
end
if fromPosition.x == CONTAINER_POSITION then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "Put the construction kit on the floor first.")
elseif not fromPosition:getTile():getHouse() then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You may construct this only inside a house.")
else
item:transform(kit)
item:setActionId(0)
fromPosition:sendMagicEffect(CONST_ME_POFF)
end
return true
end
Code:
<action actionid="36532" script="unwrap.lua" />
<action actionid="33493" script="unwrap.lua" />
<action actionid="26074" script="unwrap.lua" />
<action actionid="26061" script="unwrap.lua" />
<action actionid="26376" script="unwrap.lua" />
<action actionid="36045" script="unwrap.lua" />
<action actionid="36777" script="unwrap.lua" />
<action actionid="32147" script="unwrap.lua" />
<action actionid="36790" script="unwrap.lua" />
<action actionid="29354" script="unwrap.lua" />
<action actionid="29398" script="unwrap.lua" />
<action actionid="29394" script="unwrap.lua" />
<action actionid="29401" script="unwrap.lua" />
<action actionid="33519" script="unwrap.lua" />
<action actionid="36780" script="unwrap.lua" />
<action actionid="36768" script="unwrap.lua" />
<action actionid="36782" script="unwrap.lua" />
<action actionid="36781" script="unwrap.lua" />
<action actionid="32043" script="unwrap.lua" />
<action actionid="36043" script="unwrap.lua" />
<action actionid="26351" script="unwrap.lua" />
<action actionid="36518" script="unwrap.lua" />
<action actionid="29352" script="unwrap.lua" />
<action actionid="29024" script="unwrap.lua" />
<action actionid="36783" script="unwrap.lua" />
<action actionid="32260" script="unwrap.lua" />
<action actionid="32266" script="unwrap.lua" />
<action actionid="32264" script="unwrap.lua" />
<action actionid="29397" script="unwrap.lua" />
<action actionid="32036" script="unwrap.lua" />
<action actionid="32398" script="unwrap.lua" />
<action actionid="29357" script="unwrap.lua" />
<action actionid="33499" script="unwrap.lua" />
<action actionid="33501" script="unwrap.lua" />
<action actionid="36558" script="unwrap.lua" />
<action actionid="29407" script="unwrap.lua" />
<action actionid="29314" script="unwrap.lua" />
<action actionid="32047" script="unwrap.lua" />
<action actionid="33175" script="unwrap.lua" />
<action actionid="27903" script="unwrap.lua" />
<action actionid="27899" script="unwrap.lua" />
<action actionid="29348" script="unwrap.lua" />
<action actionid="29341" script="unwrap.lua" />
<action actionid="29350" script="unwrap.lua" />
<action actionid="29339" script="unwrap.lua" />
<action actionid="29347" script="unwrap.lua" />
<action actionid="36055" script="unwrap.lua" />
<action actionid="36052" script="unwrap.lua" />
<action actionid="29387" script="unwrap.lua" />
<action actionid="26088" script="unwrap.lua" />
<action actionid="36786" script="unwrap.lua" />
<action actionid="36029" script="unwrap.lua" />
<action actionid="29359" script="unwrap.lua" />
<action actionid="26087" script="unwrap.lua" />
<action actionid="36044" script="unwrap.lua" />
<action actionid="36053" script="unwrap.lua" />
<action actionid="36515" script="unwrap.lua" />
<action actionid="36528" script="unwrap.lua" />
<action actionid="36522" script="unwrap.lua" />
<action actionid="36540" script="unwrap.lua" />
<action actionid="36514" script="unwrap.lua" />
<action actionid="29317" script="unwrap.lua" />
<action actionid="36056" script="unwrap.lua" />
<action actionid="36049" script="unwrap.lua" />
<action actionid="27843" script="unwrap.lua" />
<action actionid="33515" script="unwrap.lua" />
<action actionid="32049" script="unwrap.lua" />
<action actionid="32023" script="unwrap.lua" />
<action actionid="26368" script="unwrap.lua" />
<action actionid="26092" script="unwrap.lua" />
<action actionid="26096" script="unwrap.lua" />
<action actionid="27103" script="unwrap.lua" />
<action actionid="35039" script="unwrap.lua" />
<action actionid="35042" script="unwrap.lua" />
<action actionid="35035" script="unwrap.lua" />
<action actionid="35027" script="unwrap.lua" />
<action actionid="35041" script="unwrap.lua" />
<action actionid="35038" script="unwrap.lua" />
<action actionid="35023" script="unwrap.lua" />
<action actionid="35031" script="unwrap.lua" />
<action actionid="27084" script="unwrap.lua" />
<action actionid="33491" script="unwrap.lua" />
<action actionid="32397" script="unwrap.lua" />
<action actionid="27087" script="unwrap.lua" />
<action actionid="27851" script="unwrap.lua" />
<action actionid="33497" script="unwrap.lua" />
<action actionid="33495" script="unwrap.lua" />
<action actionid="36046" script="unwrap.lua" />
<action actionid="26353" script="unwrap.lua" />
<action actionid="32045" script="unwrap.lua" />
<action actionid="36027" script="unwrap.lua" />
<action actionid="36020" script="unwrap.lua" />
<action actionid="27088" script="unwrap.lua" />
<action actionid="36022" script="unwrap.lua" />
<action actionid="36026" script="unwrap.lua" />
<action actionid="26367" script="unwrap.lua" />
<action actionid="32394" script="unwrap.lua" />
<action actionid="26065" script="unwrap.lua" />
<action actionid="26070" script="unwrap.lua" />
<action actionid="32040" script="unwrap.lua" />
<action actionid="32143" script="unwrap.lua" />
<action actionid="27889" script="unwrap.lua" />
<action actionid="35021" script="unwrap.lua" />
<action actionid="33513" script="unwrap.lua" />
<action actionid="27085" script="unwrap.lua" />
<action actionid="33505" script="unwrap.lua" />
<action actionid="33509" script="unwrap.lua" />
<action actionid="33507" script="unwrap.lua" />
<action actionid="29388" script="unwrap.lua" />
<action actionid="26363" script="unwrap.lua" />
<action actionid="36031" script="unwrap.lua" />
<action actionid="36530" script="unwrap.lua" />
<action actionid="29022" script="unwrap.lua" />
<action actionid="26369" script="unwrap.lua" />
<action actionid="29390" script="unwrap.lua" />
<action actionid="32145" script="unwrap.lua" />
<action actionid="29409" script="unwrap.lua" />
<action actionid="36047" script="unwrap.lua" />
<action actionid="36538" script="unwrap.lua" />
<action actionid="26089" script="unwrap.lua" />
<action actionid="36772" script="unwrap.lua" />
<action actionid="32028" script="unwrap.lua" />
<action actionid="26312" script="unwrap.lua" />
<action actionid="32396" script="unwrap.lua" />
<action actionid="32018" script="unwrap.lua" />
<action actionid="27893" script="unwrap.lua" />
<action actionid="36054" script="unwrap.lua" />
<action actionid="36057" script="unwrap.lua" />
<action actionid="32038" script="unwrap.lua" />
<action actionid="32390" script="unwrap.lua" />
<action actionid="26098" script="unwrap.lua" />
<action actionid="26366" script="unwrap.lua" />
<action actionid="32032" script="unwrap.lua" />
<action actionid="32046" script="unwrap.lua" />
<action actionid="32259" script="unwrap.lua" />
<action actionid="26106" script="unwrap.lua" />
<action actionid="32021" script="unwrap.lua" />
<action actionid="32020" script="unwrap.lua" />
<action actionid="29343" script="unwrap.lua" />
<action actionid="36299" script="unwrap.lua" />
<action actionid="36349" script="unwrap.lua" />
<action actionid="27850" script="unwrap.lua" />
<action actionid="26347" script="unwrap.lua" />
<action actionid="27100" script="unwrap.lua" />
<action actionid="27887" script="unwrap.lua" />
<action actionid="26109" script="unwrap.lua" />
<action actionid="26373" script="unwrap.lua" />
<action actionid="27086" script="unwrap.lua" />
<action actionid="27091" script="unwrap.lua" />
<action actionid="26107" script="unwrap.lua" />
<action actionid="26090" script="unwrap.lua" />
<action actionid="26104" script="unwrap.lua" />
<action actionid="26381" script="unwrap.lua" />
<action actionid="26059" script="unwrap.lua" />
<action actionid="26079" script="unwrap.lua" />
<action actionid="26354" script="unwrap.lua" />
<action actionid="27892" script="unwrap.lua" />
<action actionid="26110" script="unwrap.lua" />
<action actionid="26374" script="unwrap.lua" />
<action actionid="26370" script="unwrap.lua" />
<action actionid="26100" script="unwrap.lua" />
<action actionid="27102" script="unwrap.lua" />
<action actionid="26105" script="unwrap.lua" />
<action actionid="26083" script="unwrap.lua" />
<action actionid="26067" script="unwrap.lua" />
<action actionid="27897" script="unwrap.lua" />
<action actionid="27894" script="unwrap.lua" />
<action actionid="26111" script="unwrap.lua" />
<action actionid="26375" script="unwrap.lua" />
<action actionid="26356" script="unwrap.lua" />
<action actionid="27905" script="unwrap.lua" />
<action actionid="27895" script="unwrap.lua" />
<action actionid="26371" script="unwrap.lua" />
<action actionid="27089" script="unwrap.lua" />
<action actionid="26057" script="unwrap.lua" />
<action actionid="26379" script="unwrap.lua" />
<action actionid="27728" script="unwrap.lua" />
<action actionid="26077" script="unwrap.lua" />
<action actionid="26349" script="unwrap.lua" />
<action actionid="27901" script="unwrap.lua" />
<action actionid="27896" script="unwrap.lua" />
<action actionid="26372" script="unwrap.lua" />
<action actionid="27090" script="unwrap.lua" />
<action actionid="26094" script="unwrap.lua" />
<action actionid="26055" script="unwrap.lua" />
<action actionid="26380" script="unwrap.lua" />
<action actionid="26075" script="unwrap.lua" />
<action actionid="26063" script="unwrap.lua" />
<action actionid="26358" script="unwrap.lua" />
<action actionid="26073" script="unwrap.lua" />
<action actionid="26364" script="unwrap.lua" />