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

Bless

Donaj

Banned User
Joined
Jan 6, 2010
Messages
943
Reaction score
3
Witam, gdy ktos kupi !blessy, to blessy dzialaj lecz spada cale eq i wszystko. Skrypt jest dobry, na 2 otsie dziala. Jakies pomysly? Wydaje mi sie, ze cos z baza ale nie mam zielonego pojecia co ;D
 
config.lua ?

Code:
blessingOnlyPremium = true
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
 
Czytaj Z uwaga, chyba mnie zle zrozumiales...

-- Blessings
blessingsOnlyPremium = "no"
blessingReductionBase = 45
blessingReductionDecreament = 5
eachBlessReduction = 8


mam tak ^
 
nie musi to byc ustawianie w bazie /data/creaturescripts/scripts/login.lua
 
Mam tak, doczytales temat? ;p chodzi o to ze cale eq spada, pzy blesach, skrypt jest dobry :D
 
czy Ty rozumiesz? lose_items? lose_containers? jeśli skrypt jest dobry to coś zepsułeś z blessami, bo wszystkie blessy działają jak aol...
 
Mam 2 otsa, na tym samym silniku, skrypty te same i dziala, ale Wszystko spada po wykupieniu blessow.
 
Nie wiem czy Ci to pomoze ale uzyj mojego skryptu:
oczywiscie talkactions.
function onSay(cid, words, param)
local fail = 0

if getPlayerLevel(cid) < 31 then
cost = 10000
else
cost = ((getPlayerLevel(cid) - 30) * 200) + 2000
end

if cost > 10000 then
cost = 10000
end

for i = 1, 5 do
if getPlayerBlessing(cid, i) then
fail = fail + 1
else
if doPlayerRemoveMoney(cid, cost) == TRUE then
doPlayerAddBlessing(cid, i)
if i == 5 and not(fail == 5) then
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
end
else
doPlayerSendCancel(cid, "You do not have enough money to buy all the blessings!")
break
end
end
end
if fail == 5 then
doPlayerSendCancel(cid, "You already have all the blessings!")
end
return TRUE
end
 
lessloss w vocations?

Hmm, moze sprawdze i dam edita.


<vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="50">

lessloss="50">


Chyba dobrze.
 
Back
Top