• 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

Status
Not open for further replies.

GarQet

Own3d!
Joined
Feb 10, 2009
Messages
1,381
Solutions
14
Reaction score
81
Witam.
Mam pewnie problem z moimi blessami, błąd jest raczej w źródłach.
Moje pytanie brzmi: Gdzie mogę znaleźć źródła blessów?
Mam taki bug, że kupujemy bless, padamy, wszystko nam spada, włącznie z levelem (do 1), oraz postać dostaje BUGA, którego nie można usunąć, tz. już nawet gdy nie kupi blessów to nic nie pomoże jak jej skasować postać i zrobić na nowo, ponieważ bug będzie dalej istniał na postaci.
Proszę o pomoc.
Pozdrawiam GarQet.
 
Code:
function onSay(cid, words, param)
    if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
        doPlayerSendCancel(cid,'You have already got one or more blessings!')
    else
        if doPlayerRemoveMoney(cid, 50000) == TRUE then
            doPlayerAddBlessing(cid, 1)
            doPlayerAddBlessing(cid, 2)
            doPlayerAddBlessing(cid, 3)
            doPlayerAddBlessing(cid, 4)
            doPlayerAddBlessing(cid, 5)
	    doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BIGCLOUDS)
            doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
        else
            doPlayerSendCancel(cid, "You need 5 crystal coin to get blessed!")
        end
    end    
    return 1
end
 
ja mam taki ;x


Code:
-- !bless by Piotrek1447
-- edited by Kleksu
local bless = {1, 2, 3, 4, 5}
local cost = 500 -- Cost in gp.
function onSay(cid, words, param)
	for i = 1, table.maxn(bless) do
		if(getPlayerBlessing(cid, bless[i])) then
			doPlayerSendCancel(cid, "You have already all blessings.")
			return TRUE
		end
	end
	if(doPlayerRemoveMoney(cid, cost) == TRUE) then
		for i = 1, table.maxn(bless) do
			doPlayerAddBlessing(cid, bless[i])
		end
		doPlayerSendTextMessage(cid,24, "You bought all blessing.")
		doSendMagicEffect(getPlayerPosition(cid), 28)
	else
		doPlayerSendCancel(cid, "You don't have enough money.")
	end
	return TRUE
end
 
ja mam taki ;x


Code:
-- !bless by Piotrek1447
-- edited by Kleksu
local bless = {1, 2, 3, 4, 5}
local cost = 500 -- Cost in gp.
function onSay(cid, words, param)
	for i = 1, table.maxn(bless) do
		if(getPlayerBlessing(cid, bless[i])) then
			doPlayerSendCancel(cid, "You have already all blessings.")
			return TRUE
		end
	end
	if(doPlayerRemoveMoney(cid, cost) == TRUE) then
		for i = 1, table.maxn(bless) do
			doPlayerAddBlessing(cid, bless[i])
		end
		doPlayerSendTextMessage(cid,24, "You bought all blessing.")
		doSendMagicEffect(getPlayerPosition(cid), 28)
	else
		doPlayerSendCancel(cid, "You don't have enough money.")
	end
	return TRUE
end

to nobski jakis
 
Najpierw powyzywa, a potem chce pomocy? Ja znam rozwiazanie, 10x to poprawiałem juz, ale tobie pomoc? chyba musiałbym ocipieć
 
Najpierw powyzywa, a potem chce pomocy? Ja znam rozwiazanie, 10x to poprawiałem juz, ale tobie pomoc? chyba musiałbym ocipieć

Po ostatniej akcji bardzo cię polubiłem, jesteś moim idolem życia :wub:.
Bardzo mnie rozśmieszyło twoje zachowanie :peace:.
Powyzywa? Śmieszne to jest to co piszesz, ty zapewne na każde forum, żeby zareklamować swojego otka piszesz inną oryginalną reklamę promującą...
Wątpie.
Wkurwiłem się i odreagowałem, musiałem ci wygarnąć. Wybacz...
Ktoś w końcu musiał to zrobić, a los wskazał mnie.

Btw. Dałem sobie radę, tz. zmieniłem silnik na 0.3.5pl1 i trochę ztjuningowałem sobie blessy i działają.

Dzięki za pomoc ludziska, widzę że zawsze można na was polegać.
 
Czyli nie idzie zrobić blessów na komendę !bless pod silnik TFS 0.3.6 ?

btw za co odpowiedzialne są te paramtry w confiugu
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
?
 
Czyli nie idzie zrobić blessów na komendę !bless pod silnik TFS 0.3.6 ?

btw za co odpowiedzialne są te paramtry w confiugu
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
?

Isc moze nie idzie, ale zrobic sie da.
 
tak to krytyczny bug ^_^

twoj skrypt na blessy jest dobry.
 
Nie wiem czy się mylę, czy też nie, ale bez łącznia się z bazą blessy nie zadziałają. Bynajmniej u mnie tak jest.
 
Status
Not open for further replies.
Back
Top