• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Support Scripts - tworzymy/naprawiamy

Status
Zamknięty.
Odp: Support Scripts - tworzymy/naprawiamy

Nie wiem gdzie mam wstawi? t? funkcj?. Sam j? gdzie? wrzu?:
PHP:
doPlayerLearnInstantSpell(cid, name)
cid zostawiasz, name to nazwa czaru jak? da?e? w spells.xml
 
Odp: Support Scripts - tworzymy/naprawiamy

#Norbon94
PHP:
local nazwa_czaru = "Light Healing" -- wpisz tu nazwe czaru
local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
msg = string.lower(msg)


if msgcontains(msg, 'hi') then

selfSay('Hej!, masz moja tarcze?')	
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.')

elseif focus == cid then
talk_start = os.clock()



if msgcontains(msg, 'yes') then
if getPlayerStorageValue(cid,8000) == 1 then

selfSay('To nie twoja misja!.')	
elseif msgcontains(msg, 'yes') then
if doPlayerRemoveItem(cid,2667,5) == 0 then
selfSay('Nie masz tej tarczy!.')	

else	
if doPlayerAddItem(cid,2151,50) then

setPlayerStorageValue(cid,8000,1)
selfSay('Dzieki! Nauczylem Cie techniki "omote"')
doPlayerLearnInstantSpell(cid, nazwa_czaru)
focus = 0
talk_start = 0


end
end
end

elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Zegnaj, ' .. getCreatureName(cid) .. '!')
focus = 0
talk_start = 0
end
end

end
function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 45 then
if focus > 0 then
selfSay('Nastepny prosze...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Zegnaj.')
focus = 0
end
end
end
 
Odp: Support Scripts - tworzymy/naprawiamy

@up
Dzi?ki dzia?a, lecz mam jeszcze jeden problem . . ;/ Mam w spells.xml taki spell.
<instant name="omote" words="omote" needtarget="1"

direction="1" lvl="1" maglv="0" mana="0" soul="0" exhaustion="1"

prem="0" enabled="1" script="omote.lua"></instant>

I jak w nim ustawi? aby on by? do NAUCZENIA a nie od lvl.. ? Bo mog? go u?ywa? nawet wtedy kiedy nie by?em u NPC, chyba rozumiecie ^ ^ Z g?ry naprawd? przepraszam, ?e dobule post . . ;/ i Dzi?kuje. :D

@Down
Zn?w problem . . ;/ Oto on :

Przypomn?, ?e jest to silnik 8.0 i mo?e nie czyta? takiej funkcji, co wtedy? . . ;/
 
Ostatnia edycja:
Odp: Support Scripts - tworzymy/naprawiamy

Dodaj tam:
PHP:
needlearn="1"
I po sprawie.

#down
Wyra?nie napisane, ?e robimy skrypty pod silniki sql czyli 8.1 i wy?ej.
 
Ostatnia edycja:
Odp: Support Scripts - tworzymy/naprawiamy

@Down
Zn?w problem . . ;/ Oto on :

Przypomn?, ?e jest to silnik 8.0 i mo?e nie czyta? takiej funkcji, co wtedy? . . ;/

@Up
Nie da?o by si? zrobi?. . ; /? pod ten 8.0? . . ;/
 
Ostatnia edycja:
Odp: Support Scripts - tworzymy/naprawiamy

Typ: Nie wiem ale daje ssy :D
Opis: Chodzi mi o dwa skrypty:
1.[3/10] - Miejsca na klejnot w stylu diablo. Pierwsza liczba m?wi, ile miejsc zuzylismy, a druga ile jest calkowicie. Mozemy w przedmiot z miejscem wlozyc klejnoty. ( )
2.Szansa w % na to, ze zadamy podw?jne obrazenia.( )
3. Chodzi mi o to aby zamiast See you magic plate armor. By?o ty widzisz magic plate armor wazy 10 oz. Z g?ry dzi?ki :D
 
Odp: Support Scripts - tworzymy/naprawiamy

Ej "Norbon94" Nie za?miecaj Tematu, by?o na pocz?tku gadane..
Wszelkie pytania pro?by, b??dy na PW
Prosze o spok?j, sprzyda si? to naszym skrypterom.
 
Odp: Support Scripts - tworzymy/naprawiamy

#2 up
1 oraz 2. Nie b?d? pisa? system?w, za kt?re ludzie s?ono p?ac?. Nie b?d? robi? systemu slot?w i criticala.
3. Edytuj source. Wystarczy zna? podstawy angielskiego i to zrobisz.
 
Odp: Support Scripts - tworzymy/naprawiamy

Witam, ot?? potrzebuje czego? takiego:

Typ - Spell/CreatureEvent
Opis - Wi?c u?ywamy spellu ''zamiana'', je?li u?yli?my tego spella to je?li inny gracz b?dzie pr?bowa? nas uderzy? z ?apy lub jakiego? spella to nie otrzymujem obra?e? tylko teleportuje nas od 3 do 5 kratek w jedn? z 4 stron ?wiata. Oczywi?cie nie mo?emy wbija? do domku, przechodzi? przez ?ciany lub jakiego? bordery typ block.
Dodatkowe - ;) TFS 0.3.6PL1
 
Odp: Support Scripts - tworzymy/naprawiamy

W data/creaturescripts/scripts zr?b plik i wklej:
PHP:
function onCombat(cid, target)
if isPlayer(cid) and isPlayer(target) and getPlayerStorageValue(target, 1234) == 1 then
	local pos = getCreaturePosition(target)
	local rands = {-5,-4,-3,3,4,5}
	if math.random(0,1) == 0 then
		pos.x = pos.x + rands[math.random(1,#rands)]
	else
		pos.y = pos.y + rands[math.random(1,#rands)]
	end
	local fer = getClosestFreeTile(target, pos, false, false)
	if isSightClear(getCreaturePosition(target), fer, true) then
		doTeleportThing(target, fer)
	end
	return false
end
return true
end
Do creaturescripts.xml wklej:
PHP:
<event type="combat" name="Ot" event="script" value="nazwa.lua"/>
Do login.lua wklej:
PHP:
registerCreatureEvent(cid, 'Ot')
W spells/scripts stw?rz plik i wklej:
PHP:
function onCastSpell(cid, var)
	doPlayerSetStorageValue(cid, 1234, 1)
	doSendMagicEffect(getCreaturePosition(cid), 39)
return true
end

U?ywam storage 1234.
 
Odp: Support Scripts - tworzymy/naprawiamy

Typ - Spells
Opis - Przy u?yciu tego spell'a, gracz nie dostaje obra?e? od czar?w czyl idaje nam ochron? na "energydamage itp." 8.1 ;] A i kt?ry ma zabiera? xx Soul'a ; > Dzi?kuje ;D
 
Odp: Support Scripts - tworzymy/naprawiamy

W data/creaturescripts/scripts zr?b plik i wklej:
PHP:
function onCombat(cid, target)
if isCreature(cid) and isPlayer(target) and getPlayerStorageValue(target, 1234) == 1 then
	return false
end
return true
end
Do creaturescripts.xml wklej:
PHP:
<event type="combat" name="Ot" event="script" value="nazwa.lua"/>
Do login.lua wklej:
PHP:
registerCreatureEvent(cid, 'Ot')
W spells/scripts stw?rz plik i wklej:
PHP:
function onCastSpell(cid, var)
	doPlayerSetStorageValue(cid, 1234, 1)
	doSendMagicEffect(getCreaturePosition(cid), 39)
return true
end

U?ywam storage 1234.
 
Odp: Support Scripts - tworzymy/naprawiamy

Typ: Actions
Opis: System oswajania monster?w, gdy monster ma 1/3 zycia mozemy uzyc na nim klucza(Odmienna szansa na oswojenie kazdego monstera)np. wolf 25% szansy(tylko przyklad ja ustawie), gdy go oswoimy pojawia nam sie nowy item i monster ma full hp, mozemy go wypuszczac i przyzywac.
Dodatkowe: Nie chodzi o pokemon!!! tylko RPG
@Down
ok poczekam ile b?dzie trzeba.
 
Ostatnia edycja:
Odp: Support Scripts - tworzymy/naprawiamy

#up
Daj mi kilka dni.

Witam nie mam, gdzie tego napisa? :( je?li nie tu to przrosze o usuni?cie postu.
Sprawa jest taka, ?e posiadam skrypt Upgrade kt?ry ulepsza przedmioty na LVL itd... problem w tym, ?e potrzebowa?bym teraz skryptu, kt?ry Upgraduje Item daj?c mu dopisek np: Dragon Slayer (Niebianski +1) i dawa? by naprzyk?ad + 2 obra?enia od Lodu. A i gdyby by?o to mo?liwe, by da?o si? Upgradnac tylko itemy o danym ID, prosi?bym to wyr??nic tak, bym m?g? to zmieni?. Tak wi?c oto dane:
Opis: WY?EJ ^
Silnik: 8.54 TFS
Typ: Actions (na ID itemu)
Je?eli czego? brakuje prosz? o upomnienie
Oto skrypt, kt?ry m?g?by by? zedytowany, tak by dawa? + obra?enia od Lodu, etc... i je?li to mo?liwe zrobienie go tak by dzia?a? na dany item:
Kod:
local conf = {}
conf["level"] = {
-- [item_level] = {successParcent=PARCENT FOR UPGRADING SUCCESS, downrageLevel = IF UPGRADING FAIL - ITEM WAS DECRASED TO LEVEL HERE}
 [1] = {successParcent = 85, downrageLevel = 0},
 [2] = {successParcent = 80, downrageLevel = 1},
 [3] = {successParcent = 75, downrageLevel = 2},
 [4] = {successParcent = 70, downrageLevel = 3},
 [5] = {successParcent = 65, downrageLevel = 4},
 [6] = {successParcent = 60, downrageLevel = 5},
 [7] = {successParcent = 55, downrageLevel = 6},
 [8] = {successParcent = 50, downrageLevel = 7},
 [9] = {successParcent = 45, downrageLevel = 8}
}
conf["upgrade"] = { -- how many parcent attributes are rised?
    attack = 5, -- attack %
    extraAttack = 10, -- extra Attack %
    defense = 5, -- defence %
    extraDefense = 10, -- extra defence %
    armor = 5, -- armor %
    hitChance = 5, -- hit chance %
}
-- // do not touch // -- 
-- Upgrading system v.3.1 by Azi [Ersiu] Edited by Captain2009 --
local upgrading = {
    upValue = function (value, level, parcent)
        if(not(value>0))then return 0 end 
        for i=1,level do
            value = math.ceil(((value/100)*parcent)+value)+1
        end
        return (value > 0) and value or 0
    end,
    getLevel = function (item)
        local name = string.explode(getItemName(item), '+')
        return (#name == 1) and 0 or math.abs(name[2])
    end,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local getItem = getItemInfo(itemEx.itemid)
    if((getItem.weaponType > 0 or getItem.armor > 0) and not isItemStackable(itemEx.itemid))then
        local level = upgrading.getLevel(itemEx.uid)
        if(level < #conf["level"])then
            local nLevel = (conf["level"][(level+1)].successParcent >= math.random(1,100)) and (level+1) or conf["level"][level].downrageLevel
            if(nLevel > level)then
                doSendMagicEffect(toPosition, 30)
                doPlayerSendTextMessage(cid, 22, "Udalo sie! Przedmiot zyskal na mocy")
            else
                doSendMagicEffect(toPosition, 2)
                doPlayerSendTextMessage(cid, 22, "Cholera, nie udalo sie... przedmiot stracil troche mocy!")
            end
            doItemSetAttribute(itemEx.uid, "name", getItem.name..((nLevel>0) and " +"..nLevel or "")) 
            doItemSetAttribute(itemEx.uid, "attack",  upgrading.upValue(getItem.attack, nLevel, conf["upgrade"].attack))
            doItemSetAttribute(itemEx.uid, "extraattack", upgrading.upValue(getItem.extraAttack, nLevel, conf["upgrade"].extraAttack))
            doItemSetAttribute(itemEx.uid, "defense", upgrading.upValue(getItem.defense,nLevel, conf["upgrade"].defense))
            doItemSetAttribute(itemEx.uid, "extradefense", upgrading.upValue(getItem.extraDefense, nLevel, conf["upgrade"].extraDefense))
            doItemSetAttribute(itemEx.uid, "armor", upgrading.upValue(getItem.armor, nLevel, conf["upgrade"].armor))
            doItemSetAttribute(itemEx.uid, "hitChance", upgrading.upValue(getItem.hitChance,nLevel, conf["upgrade"].hitChance))
            doRemoveItem(item.uid, 1)
        else
            doPlayerSendTextMessage(cid, 19, "Przykro mi ten item ma juz max level.")
        end
    else
        doPlayerSendTextMessage(cid, 19, "Tego itemu nie da sie ulepszyc.")
    end
end
@3 Down
Spoko dzi?ki ;) poczekam je?li trzeba ;D
Oto obiecany upgrade system.
Najpierw id? do data/lib/000-constant.lua i pod
PHP:
COMBAT_NONE = 0
COMBAT_PHYSICALDAMAGE = 1
COMBAT_ENERGYDAMAGE = 2
COMBAT_EARTHDAMAGE = 4
COMBAT_POISONDAMAGE = 4
COMBAT_FIREDAMAGE = 8
COMBAT_UNDEFINEDDAMAGE = 16
COMBAT_LIFEDRAIN = 32
COMBAT_MANADRAIN = 64
COMBAT_HEALING = 128
COMBAT_DROWNDAMAGE = 256
COMBAT_ICEDAMAGE = 512
COMBAT_HOLYDAMAGE = 1024
COMBAT_DEATHDAMAGE = 2048
Wklej:
PHP:
ELEM = {
		[11559] = {COMBAT_ICEDAMAGE, value = {2,3}},
		[2376] = {COMBAT_DEATHDAMAGE, value = {1,2}}
		}
Teraz id? do data/creaturescripts/scripts i stw?rz tam plik o nazwie upgrade.lua i wklej:
PHP:
function onCombat(cid, target)
if isMonster(target) or isPlayer(cid) then
	registerCreatureEvent(target, 'Ot')
	registerCreatureEvent(cid, 'Ot')
end
return true
end

function onStatsChange(cid, attacker, type, combat, value)
if isMonster(cid) and isPlayer(attacker) then
	local item = getPlayerWeapon(attacker, true)
	if item.itemid > 0 and isWeapon(item.itemid) then
		if item.actionid > 0 then
			local value = math.floor(value * (item.actionid/100))
			for k, v in pairs(ELEM) do
				if isInArray(k, item.itemid) then
					doTargetCombatHealth(0, cid, v[1], -value, -value, INVISIBLE_EFFECT)
				end
			end
		end
	end
end
return true
end
Do creaturescripts.xml wklej:
PHP:
<event type="combat" name="Ots" event="script" value="upgrade.lua"/>
<event type="statschange" name="Ot" event="script" value="upgrade.lua"/>
Do login.lua wklej:
PHP:
registerCreatureEvent(cid, 'Ot')
registerCreatureEvent(cid, 'Ots')
Do swojego pliku actions wklej zamiast tamtego skryptu, ten:
PHP:
local conf = {}
conf['level'] = {
				[1] = {successPercent = 100, downrageLevel = 0, dopisek = {'Zwykly','Zuzyty'}},
				[2] = {successPercent = 50, downrageLevel = 1, dopisek = {'Ulepszony','Lepszy'}},
				[3] = {successPercent = 45, downrageLevel = 2, dopisek = {'Wzmocniony'}},
				[4] = {successPercent = 40, downrageLevel = 3, dopisek = {'Dobrej Jakosci'}},
				[5] = {successPercent = 35, downrageLevel = 4, dopisek = {'Bez Skazy'}},
				[6] = {successPercent = 30, downrageLevel = 5, dopisek = {'Mocny'}},
				[7] = {successPercent = 25, downrageLevel = 6, dopisek = {'Potezny'}},
				[8] = {successPercent = 20, downrageLevel = 7, dopisek = {'Niebianski'}},
				[9] = {successPercent = 15, downrageLevel = 8, dopisek = {'Blogoslawiony'}}
				}
conf['upgrade'] = {
					--in percent
					attack = 5,
					extraAttack = 10,
					defense = 5,
					extraDefense = 10,
					armor = 5
					}
local upgrading = {
					upValue = function (value, level, percent)
					if value < 0 then return false end 
						for i = 1, level do
							value = math.ceil(((value / 100) * percent) + value) + 1
						end
						return (value > 0) and value or 0
					end,
					getLevel = function (item)
						local name = string.explode(getItemName(item), '+')
						return (#name == 1) and 0 or math.abs(name[2])
					end
					}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local getItem = getItemInfo(itemEx.itemid)
    if((getItem.weaponType > 0 or getItem.armor > 0) and not isItemStackable(itemEx.itemid))then
        local level = upgrading.getLevel(itemEx.uid)
        if level < #conf['level'] then
			local nLevel = (conf['level'][(level+1)].successPercent >= math.random(1,100)) and (level+1) or conf['level'][level].downrageLevel
            if(nLevel > level)then
				x = 1
				doSendMagicEffect(toPosition, CONST_ME_FIREWORK_RED)
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Udalo sie! Przedmiot zyskal na mocy')
            else
				x = -1
                doSendMagicEffect(toPosition, CONST_ME_POFF)
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Cholera, nie udalo sie... przedmiot stracil troche mocy!')
            end
			if level+x == 0 then
				doItemSetAttribute(itemEx.uid, 'name', getItem.name)
			else
				doItemSetAttribute(itemEx.uid, 'name', conf['level'][(level+x)].dopisek[math.random(1,#conf['level'][(level+x)].dopisek)]..' '..getItem.name..((nLevel > 0) and ' +'..nLevel or ''))
			end
			if ELEM[itemEx.itemid] then
				doItemSetAttribute(itemEx.uid, 'aid', (itemEx.actionid + math.random(ELEM[itemEx.itemid].value[1], ELEM[itemEx.itemid].value[2])) * x)
			end
			doItemSetAttribute(itemEx.uid, 'attack',  upgrading.upValue(getItem.attack, nLevel, conf['upgrade'].attack))
            doItemSetAttribute(itemEx.uid, 'extraattack', upgrading.upValue(getItem.extraAttack, nLevel, conf['upgrade'].extraAttack))
            doItemSetAttribute(itemEx.uid, 'defense', upgrading.upValue(getItem.defense,nLevel, conf['upgrade'].defense))
            doItemSetAttribute(itemEx.uid, 'extradefense', upgrading.upValue(getItem.extraDefense, nLevel, conf['upgrade'].extraDefense))
            doItemSetAttribute(itemEx.uid, 'armor', upgrading.upValue(getItem.armor, nLevel, conf['upgrade'].armor))
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Przykro mi ten item ma juz maksymalny level.')
        end
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Tego itemu nie da sie ulepszyc.')
    end
end
Opisa? spos?b dzia?ania?

22:49 Widzisz Wzmocniony sword +3 (Atak: 20 +5, Obrona: 18 +7).
Niestety, ale dopisek o dodatkowych obra?eniach od ?ywio??w jest w fazie test?w.
Postaram si? go nieco udoskonali? w przysz?o?ci.
Dodatkowe obra?enia liczone s? wed?ug tego wzoru:
normalne_obrazenia * (item.actionid / 100)
Czyli bro? maj?ca aid r?wne 23, a gracz zada obra?enia za 100 to dodatkowe obra?enia od ?ywio?u wynios?: 100 * (23 / 100) = 23, czyli w sumie obra?enia wynios? 123.
 
Ostatnia edycja:
Odp: Support Scripts - tworzymy/naprawiamy

Typ:NPC
Opis: Chodzi mi o NPC z misj? (wiem, ?e by?a ju? taka pro?ba ale mi chodzi o co? innego)
Zwyczajny NPC daj?cy misje na zabicie jednego danego monstera (nie 10)
@Edit
Kiedy b?dziesz m?g? zrobi? ten skrypt, osobom poni?ej ju? zrobi?e? a ja wci?? czekam.
 
Ostatnia edycja:
Odp: Support Scripts - tworzymy/naprawiamy

Dzi?kuj? za skrypcik ;)

A z tymi Dodatkowymi obra?eniami od ?mierci itd. to si? po?apa?em gdzie sie dodaje Itemy. Tylko, jest ma?y problem... Je?eli np: Sword Ulepsze do +1 a potem spadnie do zwyklego i znowu na +1 to nie zadaje tych obra?e? dodatkowych ;(

Dzi?kuj? za pomoc.

@Edit:

Co do Upgradowania na ID przedmiot?w chodzi?o mi o to, ?e je?eli dany przedmiot ma np: ID: 2376 to mo?e by? Upgradowany, a je?eli ma inny ID nie wypisany w skrypcie to nie mo?e by? Upgradowany.
 
Ostatnia edycja:
Odp: Support Scripts - tworzymy/naprawiamy

Typ: Spells
Opis: Teleportuje na potwora i bije do okola.
Doslownie stoi na 1 kratce jak cos
 
Odp: Support Scripts - tworzymy/naprawiamy

Plik actions:
PHP:
local items = {2376,1256,7542}
local conf = {}
conf['level'] = {
                [1] = {successPercent = 100, downrageLevel = 0, dopisek = {'Zwykly','Zuzyty'}},
                [2] = {successPercent = 50, downrageLevel = 1, dopisek = {'Ulepszony','Lepszy'}},
                [3] = {successPercent = 45, downrageLevel = 2, dopisek = {'Wzmocniony'}},
                [4] = {successPercent = 40, downrageLevel = 3, dopisek = {'Dobrej Jakosci'}},
                [5] = {successPercent = 35, downrageLevel = 4, dopisek = {'Bez Skazy'}},
                [6] = {successPercent = 30, downrageLevel = 5, dopisek = {'Mocny'}},
                [7] = {successPercent = 25, downrageLevel = 6, dopisek = {'Potezny'}},
                [8] = {successPercent = 20, downrageLevel = 7, dopisek = {'Niebianski'}},
                [9] = {successPercent = 15, downrageLevel = 8, dopisek = {'Blogoslawiony'}}
                }
conf['upgrade'] = {
                    --in percent
                    attack = 5,
                    extraAttack = 10,
                    defense = 5,
                    extraDefense = 10,
                    armor = 5
                    }
local upgrading = {
                    upValue = function (value, level, percent)
                    if value < 0 then return false end 
                        for i = 1, level do
                            value = math.ceil(((value / 100) * percent) + value) + 1
                        end
                        return (value > 0) and value or 0
                    end,
                    getLevel = function (item)
                        local name = string.explode(getItemName(item), '+')
                        return (#name == 1) and 0 or math.abs(name[2])
                    end
                    }
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray(items, itemEx.itemid) then
    local getItem = getItemInfo(itemEx.itemid)
    if((getItem.weaponType > 0 or getItem.armor > 0) and not isItemStackable(itemEx.itemid))then
        local level = upgrading.getLevel(itemEx.uid)
        if level < #conf['level'] then
            local nLevel = (conf['level'][(level+1)].successPercent >= math.random(1,100)) and (level+1) or conf['level'][level].downrageLevel
            if(nLevel > level)then
                x = 1
                doSendMagicEffect(toPosition, CONST_ME_FIREWORK_RED)
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Udalo sie! Przedmiot zyskal na mocy')
            else
                x = -1
                doSendMagicEffect(toPosition, CONST_ME_POFF)
                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Cholera, nie udalo sie... przedmiot stracil troche mocy!')
            end
            if level+x == 0 then
                doItemSetAttribute(itemEx.uid, 'name', getItem.name)
            else
                doItemSetAttribute(itemEx.uid, 'name', conf['level'][(level+x)].dopisek[math.random(1,#conf['level'][(level+x)].dopisek)]..' '..getItem.name..((nLevel > 0) and ' +'..nLevel or ''))
            end
            if ELEM[itemEx.itemid] then
                doItemSetAttribute(itemEx.uid, 'aid', (itemEx.actionid + math.random(ELEM[itemEx.itemid].value[1], ELEM[itemEx.itemid].value[2])) * x)
            end
            doItemSetAttribute(itemEx.uid, 'attack',  upgrading.upValue(getItem.attack, nLevel, conf['upgrade'].attack))
            doItemSetAttribute(itemEx.uid, 'extraattack', upgrading.upValue(getItem.extraAttack, nLevel, conf['upgrade'].extraAttack))
            doItemSetAttribute(itemEx.uid, 'defense', upgrading.upValue(getItem.defense,nLevel, conf['upgrade'].defense))
            doItemSetAttribute(itemEx.uid, 'extradefense', upgrading.upValue(getItem.extraDefense, nLevel, conf['upgrade'].extraDefense))
            doItemSetAttribute(itemEx.uid, 'armor', upgrading.upValue(getItem.armor, nLevel, conf['upgrade'].armor))
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Przykro mi ten item ma juz maksymalny level.')
        end
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Tego itemu nie da sie ulepszyc.')
    end
else
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Tego itemu nie da sie ulepszyc.')
end
return true
end
Co do obra?e?, w dziale actions masz poprawiony skrypt.
 
Odp: Support Scripts - tworzymy/naprawiamy

Typ: Talkactions
Potrzebuj? skryptu gdy tutor i wy?sze rangi napisz? !muted 10 xxx
dzia?a?o by to tak ?e gracz nie m?g?by pisa? nic na helpie przez okre?lony czas lecz tylko na helpie na default by m?g?.
 
Odp: Support Scripts - tworzymy/naprawiamy

Typ : sam nie wiem chyba actions ;p
Opis : Potrzebowal bym skryptu na pvp arene na ktorej walczy sie o item a dokladniej 2 playerow wchodzi na wyznaczone pole i 2 kladzie ten sam item takze na wyznaczonym polu np przed siebie naciskaja na dzwignie i teleportuje ich na arene ten kto wygra dostaje obydwa itemy <swoj i przeciwnika> Z gory dziekuje
 
Status
Zamknięty.
Do góry