• 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!

Pomocy

Billet98

New Member
Joined
Oct 23, 2012
Messages
1
Reaction score
0
Pracuje na silnik 0.3.6 TFS
Problem polega na tym ,że działa pół stanowisk..
Zauwazylem też ,ze albo runy albo poty.
Skrypt wkleiłem w: C:\Users\user\Desktop\Evo By helper\Silnik\data\actions\scripts
Sklep.lua

local tablica = {
[5500] = {bp = 2002, potion_lub_runa = 2278, cena = 10000, sztuk = 20},
[5501] = {bp = 1998, potion_lub_runa = 2285, cena = 10000, sztuk = 20},
[8024] = {bp = 2000, potion_lub_runa = 7618, cena = 10000, sztuk = 20},
[8001] = {bp = 2000, potion_lub_runa = 7588, cena = 10000, sztuk = 20},
[8002] = {bp = 2000, potion_lub_runa = 7591, cena = 10000, sztuk = 20},
[8022] = {bp = 2000, potion_lub_runa = 8473, cena = 10000, sztuk = 20},
[8003] = {bp = 2001, potion_lub_runa = 7620, cena = 10000, sztuk = 20},
[8004] = {bp = 2001, potion_lub_runa = 7589, cena = 10000, sztuk = 20},
[8005] = {bp = 2001, potion_lub_runa = 7590, cena = 10000, sztuk = 20},
[8023] = {bp = 8472, potion_lub_runa = 8472, cena = 20000, sztuk = 20},
[5507] = {bp = 2002, potion_lub_runa = 2274, cena = 10000, sztuk = 20},
[5520] = {bp = 2001, potion_lub_runa = 2311, cena = 10000, sztuk = 20},
[5519] = {bp = 2000, potion_lub_runa = 2304, cena = 10000, sztuk = 20},
[5518] = {bp = 1998, potion_lub_runa = 2289, cena = 10000, sztuk = 20},
[5517] = {bp = 2003, potion_lub_runa = 2267, cena = 10000, sztuk = 20},
[5516] = {bp = 2003, potion_lub_runa = 2260, cena = 10000, sztuk = 20},
[5515] = {bp = 1998, potion_lub_runa = 2291, cena = 10000, sztuk = 20},
[5514] = {bp = 2002, potion_lub_runa = 2277, cena = 10000, sztuk = 20},
[5513] = {bp = 2000, potion_lub_runa = 2301, cena = 10000, sztuk = 20},
[5512] = {bp = 2004, potion_lub_runa = 2293, cena = 10000, sztuk = 20},
[5511] = {bp = 2002, potion_lub_runa = 2269, cena = 10000, sztuk = 20},
[5510] = {bp = 2003, potion_lub_runa = 2261, cena = 10000, sztuk = 20},
[5509] = {bp = 2001, potion_lub_runa = 2313, cena = 10000, sztuk = 20},
[5508] = {bp = 2004, potion_lub_runa = 2295, cena = 10000, sztuk = 20},
[5506] = {bp = 2002, potion_lub_runa = 2273, cena = 10000, sztuk = 20},
[5505] = {bp = 2000, potion_lub_runa = 2303, cena = 10000, sztuk = 20},
[5504] = {bp = 2000, potion_lub_runa = 2305, cena = 10000, sztuk = 20},
[5503] = {bp = 1998, potion_lub_runa = 2286, cena = 10000, sztuk = 20},
[5502] = {bp = 2003, potion_lub_runa = 2268, cena = 10000, sztuk = 20},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local zmienna = tablica[item.actionid]
local nazwa = getItemNameById(zmienna.potion_lub_runa)
if doPlayerRemoveMoney(cid, zmienna.cena) == TRUE then
bag = doPlayerAddItem(cid, zmienna.bp, 1)
doSendAnimatedText(fromPosition, "Zakupiono!", TEXTCOLOR_YELLOW)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Zakupiles Backpack of "..nazwa.." za "..zmienna.cena.." gold coin.")
for i=1,20 do
doAddContainerItem(bag, zmienna.potion_lub_runa, zmienna.sztuk)
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Potrzebujesz "..zmienna.cena.." gold coin aby kupic backpack of "..nazwa..".")
doSendMagicEffect(fromPosition, 2)
return false
end
end

Actions.xml
<action fromaid="5500" toaid="5516" event="script" value="sklep.lua"/>


Jeżeli coś gdzieś powinienem jeszcze wkleić prosze powiedzieć.
Lub o przekształcenie skryptu tak aby działał.
Męcze sie już z tym całą noc ;\
Pozdrawiam.
 
Back
Top