What's new

Skrypty & Kody !addon name ( Addon Doll ) mo?liwo?? u?ycia 2 razy na posta?

DenZ

Zasłużony
Joined
Feb 23, 2011
Messages
859
Reaction score
29
Age
25
Jak w temacie, kto? by mi przerobi? addon dolla aby tylko 2 razy mo?na by?o u?y??

Code:
local outfits = {
-- ['addon name'] = {male, female}
['citizen'] = {128, 136}, 
['hunter'] = {129, 137},
['mage'] = {130, 138}, 
['knight'] = {131, 139},
['nobleman'] = {132, 140},
['summoner'] = {133, 141},
['warrior'] = {134, 142}, 
['barbarian'] = {143, 147},
['druid'] = {144, 148}, 
['wizard'] = {145, 149},
['oriental'] = {146, 150},
['pirate'] = {151, 155}, 
['assassin'] = {152, 156},
['beggar'] = {153, 157},
['shaman'] = {154, 158}, 
['norsewoman'] = {251, 252},
['nightmare'] = {268, 269},
['jester'] = {273, 270}, 
['brotherhood'] = {278, 279},
['demonhunter'] = {289, 288},
['yalaharian'] = {325, 324}, 
['warmaster'] = {335, 336}, 
['wayfarer'] = {367, 366}
}

function onSay(cid, words, param)
local param = param:lower()
if getPlayerItemCount(cid, 9693) > 0 then
if param ~= '' and outfits[param] then
doPlayerRemoveItem(cid, 9693, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Full Addon Set sucesfully added!')
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
for i = 1, 2 do
doPlayerAddOutfit(cid, getPlayerSex(cid) == 1 and outfits[param][1] or outfits[param][2], i)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'In param type addon name!')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You dont have Addon Doll!')
end
return true
 

#Adaś

Senior User
Joined
Jan 22, 2011
Messages
780
Reaction score
23
Odp: !addon name ( Addon Doll ) mo?liwo?? u?ycia 2 razy na posta?

Jak odpowiednio ruszysz m?zgiem to chwilka roboty! Pozdrawiam!!
 

qwasniak

Advanced User
Joined
May 9, 2013
Messages
303
Reaction score
7
Odp: !addon name ( Addon Doll ) mo?liwo?? u?ycia 2 razy na posta?

[LUA]local outfits = {
-- ['addon name'] = {male, female}
['citizen'] = {128, 136},
['hunter'] = {129, 137},
['mage'] = {130, 138},
['knight'] = {131, 139},
['nobleman'] = {132, 140},
['summoner'] = {133, 141},
['warrior'] = {134, 142},
['barbarian'] = {143, 147},
['druid'] = {144, 148},
['wizard'] = {145, 149},
['oriental'] = {146, 150},
['pirate'] = {151, 155},
['assassin'] = {152, 156},
['beggar'] = {153, 157},
['shaman'] = {154, 158},
['norsewoman'] = {251, 252},
['nightmare'] = {268, 269},
['jester'] = {273, 270},
['brotherhood'] = {278, 279},
['demonhunter'] = {289, 288},
['yalaharian'] = {325, 324},
['warmaster'] = {335, 336},
['wayfarer'] = {367, 366}
}

function onSay(cid, words, param)
local param = param:lower()
if getPlayerStorageValue(cid, stor) < 2 and getPlayerItemCount(cid, 9693) > 0 then
if param ~= '' and outfits[param] then
doPlayerRemoveItem(cid, 9693, 1)
setPlayerStorageValue(cid, stor, getPlayerStorageValue(cid, stor) + 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Full Addon Set sucesfully added!')
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
for i = 1, 2 do
doPlayerAddOutfit(cid, getPlayerSex(cid) == 1 and outfits[param][1] or outfits[param][2], i)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'In param type addon name!')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You dont have Addon Doll or more opportunities!')
end
return true[/LUA]
Mam nadzieje, ze dzia?a ;)
 

DenZ

Zasłużony
Joined
Feb 23, 2011
Messages
859
Reaction score
29
Age
25
Odp: !addon name ( Addon Doll ) mo?liwo?? u?ycia 2 razy na posta?

[MENTION=407137]qwasniak[/MENTION] Dzi?kuje Ci bardzo zaraz sprawdz? czy dzia?a.

Jak odpowiednio ruszysz m?zgiem to chwilka roboty! Pozdrawiam!!

Nie mam zamiaru nawet odpowiada? na twoje szczeniackie zaczepki w moj? stron?, nic do cb nie mam ale od roku ty za to co? do mnie masz.


Co do zdania "Jak odpowiednio ruszysz m?zgiem to chwilka roboty"
To czemu w swoim temacie nie "ruszy?e? m?zgiem"?
https://tibia.net.pl/threads/585209-B??d-RME

Ten tw?j b??d z RME by? dla mnie ?mieszny, ale czy napisa?em Ci tam takiego posta jak ty tutaj piszesz?
Jeden zna si? i wie jak co? naprawi? drugi za? wie co jak? ma funkcje i za to odpowiada. Forum jest od tego aby si? w tym uzupe?nia? i pomaga? sobie na wzajem szczeg?lnie teraz gdy zosta?a nas tu garstka.
Je?li masz co? do mnie to zapraszam do po pisania na gg kt?re jak dobrze wiemy masz ;) a jak nie to PW w ?adnym temacie nie mam zamiaru Ci odpowiada? w twoje s?owa kierowane w moj? osob?.
A to by? ostatni post w kt?rym Ci odpowiedzia?em.
 
Top