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

Problem ze spellem.

Skoczi

New Member
Joined
Jun 6, 2012
Messages
115
Reaction score
0
Witam mam w silniku błąd o takiej tresci Screenshot Uploader

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)
addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)
setCombatCondition(combat, condition)

local ext = 2000  --- co ile sec ma byc efekt [1000=1 sec]

---Efekty przy transie---
function niebieskie1a(cid)
if getPlayerVocation(cid) == 201 then	 
		doSendMagicEffect(getPlayerPosition(cid), 5)     
            addEvent(niebieskie1a,ext,cid)

      end
   end

function onCastSpell(cid, var)

local gokupq = {lookType=168}


local pos = getCreaturePosition(cid)
local position = {x = pos.x + 1, y = pos.y, z = pos.z}

---Goku ---

if getPlayerVocation(cid) == 124 then	
    if getPlayerLevel(cid) >= 250 then
			doPlayerSetVocation(cid,201) 
				doSendMagicEffect(getPlayerPosition(cid), 5) 
					doSetCreatureOutfit(cid, gokupq, -1)
else
doPlayerSendCancel(cid, "You need 250lvl and done Power Quest to use Ultra Strong!")
		doSendMagicEffect(getPlayerPosition(cid), 2) 
end

elseif getPlayerVocation(cid) == 201 then	
    if getPlayerLevel(cid) >= 350 then
		if getPlayerStorageValue(cid,30083) == 1 then
			doPlayerSetVocation(cid,202) 
	  	  		doSendMagicEffect(getPlayerPosition(cid), 6) 
					doSetCreatureOutfit(cid, gokupq, -1)
						addEvent(niebieskie1a,ext,cid)

else
doPlayerSendCancel(cid, "You need done Power Quest to use Ultra Strong x2!")
		doSendMagicEffect(getPlayerPosition(cid), 2) 
end
else
doPlayerSendCancel(cid, "You need 350lvl to use Ultra Strong x2!")
		doSendMagicEffect(getPlayerPosition(cid), 2) 
end

else
doPlayerSendCancel(cid, "You cannot use Ultra Strong.")
		doSendMagicEffect(getPlayerPosition(cid), 2) 
end
return true
end

Pomoże ktos naprawic ? TFS 0.3.6 8.54
 
Last edited:
Ehh podstawy angielskiego..... nie można załadować skrypta ultra strong.lua z katalogu support bo pewnie złą nazwę dałeś albo coś
 
po 1.
local gokupq = {lookType=168}

doSetCreatureOutfit(cid, gokupq, -1)

wtf?


doSetCreatureOutfit(cid, outfit[, time = -1])


co ty wgl tworzysz ziom, po coo dajesz do -1 to ja nie rozumiem...


a tak po za tym nie można zbyt używać CID'a przy add eventach kiedyś mi coś takiego pisał elf, pamiętam, że zmieniałem u siebie w taskach by potem szukało gracza przez guidy



spróbuj teraz, wytabowałem i dodałem na sprawdzanie GUID'a:

LUA:
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)
addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)
setCombatCondition(combat, condition)

local ext = 2000  --- co ile sec ma byc efekt [1000=1 sec]

---Efekty przy transie---
local function niebieskie1a(NUMEREK)
	local nasz_ziom = getPlayerByName(getPlayerNameByGUID(NUMEREK))
	if getPlayerVocation(nasz_ziom) == 201 then	 
		doSendMagicEffect(getPlayerPosition(nasz_ziom), 5)     
        addEvent(niebieskie1a,ext,NUMEREK)
      end
   end

function onCastSpell(cid, var)

local gokupq = {lookType=168}

local pos = getCreaturePosition(cid)
local position = {x = pos.x + 1, y = pos.y, z = pos.z}

local NUMEREK = getPlayerGUID(cid)
---Goku ---

	if getPlayerVocation(cid) == 124 then	
		if getPlayerLevel(cid) >= 250 then
			doPlayerSetVocation(cid,201) 
			doSendMagicEffect(getPlayerPosition(cid), 5) 
			doSetCreatureOutfit(cid, gokupq, -1)
		else
		doPlayerSendCancel(cid, "You need 250lvl and done Power Quest to use Ultra Strong!")
		doSendMagicEffect(getPlayerPosition(cid), 2) 
		end
	elseif getPlayerVocation(cid) == 201 then	
		if getPlayerLevel(cid) >= 350 then
			if getPlayerStorageValue(cid,30083) == 1 then
				doPlayerSetVocation(cid,202) 
	  	  		doSendMagicEffect(getPlayerPosition(cid), 6) 
				doSetCreatureOutfit(cid, gokupq)
				addEvent(niebieskie1a,ext,NUMEREK)
			else
				doPlayerSendCancel(cid, "You need done Power Quest to use Ultra Strong x2!")
				doSendMagicEffect(getPlayerPosition(cid), 2) 
			end
		else
		doPlayerSendCancel(cid, "You need 350lvl to use Ultra Strong x2!")
		doSendMagicEffect(getPlayerPosition(cid), 2) 
		end
	else
		doPlayerSendCancel(cid, "You cannot use Ultra Strong.")
		doSendMagicEffect(getPlayerPosition(cid), 2) 
	end
	
return true
end
 
to może podaj cały bląd, a nie kurde jakies "nie moge zaladowac skryptu" super kurfa, ale powinno wywalic ci wiecej

a jak nie, to znaczy, ze zla sciezke podales
 
to może napisz jak rozwiązałeś, by potem jak ktoś będzie miał problem to żeby wiedział co robić zanim założy milion kolejnych tego typu tematów
 
Back
Top