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

[x.x][Skrypty] Zam?wienia

Status
Zamknięty.
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Zamiast functions.lua u?yj koniec globals.lua. Na ko?cu dodaj kilka linijek i tam wklejaj to co ma by? w functions.
Pozdro,
Gelio
Edit:
Hmm... TFS ma funkcje mayNotMove? Zaraz sprawdz?. Jak ma, to ok. Jak nie, to niestety si? nie da ;/
Pozdro,
Gelio
@edit
Da si?. Napisz po kolei co ma robi?, to zrobi?.


A wi?c pozycje sam zaznacze i tekst, ty mi tylko zaznacz gdzie.
Ma byc ich...4.Ok?
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Siemka Zrobi?em All Jak Mowiles Ale Pokazuje Mi Ze Cos Jest Zle-Sprawdz Moze Cos Zle Napisalem:
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
ox = 145
oy = 50
oz = 7
max = 5
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 ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then
selfSay('Hello, ' .. creatureGetName(cid) .. '! I sell joes jersey (20000000 gp), joes skirt (20000000 gp) Blessed Shield (200000 gp) MagicLongsword (100000 gp) Throwing Joes (20000000 gp) Golden Mace (100000 gp) Joe Helm (20000000 gp) Great Axe (100000 gp) Gods Spear (1000000 gp) Soft Boots (20000000 gp) Crystal Mace (50000 gp) Knightmare (30000000 gp)')
focus = cid
talk_start = os.clock()
elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif msgcontains(msg, 'joes jersey') and focus == cid then
buy(cid,2656,1,20000000)
talk_start = os.clock()lseif msgcontains(msg, 'Joe Helm') and focus == cid then
buy(cid,2665,1,20000000)lseif msgcontains(msg, 'Joes Skirt') and focus == cid then
buy(cid,3983,1,20000000)lseif msgcontains(msg, 'Blessed Shield') and focus == cid then
buy(cid,2523,1,1000000)lseif msgcontains(msg, 'Magiclongsword') and focus == cid then
buy(cid,2390,1,1000000)lseif msgcontains(msg, 'Throwing Joes') and focus == cid then
buy(cid,3966,1,20000000)lseif msgcontains(msg, 'Golden Mace') and focus == cid then
buy(cid,2437,1,1000000)lseif msgcontains(msg, 'Great Axe') and focus == cid then
buy(cid,2415,1,1000000)lseif msgcontains(msg, 'Gods Spear') and focus == cid then
buy(cid,3965,1,1000000)lseif msgcontains(msg, 'Soft Boots') and focus == cid then
buy(cid,2640,1,15000000)lseif msgcontains(msg, 'Knightmare') and focus == cid then
buy(cid,3963,1,20000000)
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
A Jak Odpalam Silnik To Pisze Takie Cos:

Przybliz Zdjecie (Kliknij Na Nie xD)
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj: np. npc
Wersja tibii: np. 8.10
O czym ma by? skrypt.
opis: Blesser pod silnik stigma 8.10 po prostu ! Z gory thx :)
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj: np. npc
Wersja tibii: np. 8.10
O czym ma by? skrypt.
opis: Blesser pod silnik stigma 8.10 po prostu ! Z gory thx :)
GDZIE? JEST!

Pozdro,
Gelio

Edit:
Siemka Zrobi?em All Jak Mowiles Ale Pokazuje Mi Ze Cos Jest Zle-Sprawdz Moze Cos Zle Napisalem:
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
ox = 145
oy = 50
oz = 7
max = 5
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 ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then
selfSay('Hello, ' .. creatureGetName(cid) .. '! I sell joes jersey (20000000 gp), joes skirt (20000000 gp) Blessed Shield (200000 gp) MagicLongsword (100000 gp) Throwing Joes (20000000 gp) Golden Mace (100000 gp) Joe Helm (20000000 gp) Great Axe (100000 gp) Gods Spear (1000000 gp) Soft Boots (20000000 gp) Crystal Mace (50000 gp) Knightmare (30000000 gp)')
focus = cid
talk_start = os.clock()
elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif msgcontains(msg, 'joes jersey') and focus == cid then
buy(cid,2656,1,20000000)
talk_start = os.clock()lseif msgcontains(msg, 'Joe Helm') and focus == cid then
buy(cid,2665,1,20000000)lseif msgcontains(msg, 'Joes Skirt') and focus == cid then
buy(cid,3983,1,20000000)lseif msgcontains(msg, 'Blessed Shield') and focus == cid then
buy(cid,2523,1,1000000)lseif msgcontains(msg, 'Magiclongsword') and focus == cid then
buy(cid,2390,1,1000000)lseif msgcontains(msg, 'Throwing Joes') and focus == cid then
buy(cid,3966,1,20000000)lseif msgcontains(msg, 'Golden Mace') and focus == cid then
buy(cid,2437,1,1000000)lseif msgcontains(msg, 'Great Axe') and focus == cid then
buy(cid,2415,1,1000000)lseif msgcontains(msg, 'Gods Spear') and focus == cid then
buy(cid,3965,1,1000000)lseif msgcontains(msg, 'Soft Boots') and focus == cid then
buy(cid,2640,1,15000000)lseif msgcontains(msg, 'Knightmare') and focus == cid then
buy(cid,3963,1,20000000)
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
A Jak Odpalam Silnik To Pisze Takie Cos:

Przybliz Zdjecie (Kliknij Na Nie xD)
Spr?buj tak:
Kod:
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
ox = 145
oy = 50
oz = 7
max = 5
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 ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then
selfSay('Hello, ' .. creatureGetName(cid) .. '! I sell joes jersey (20000000 gp), joes skirt (20000000 gp) Blessed Shield (200000 gp) MagicLongsword (100000 gp) Throwing Joes (20000000 gp) Golden Mace (100000 gp) Joe Helm (20000000 gp) Great Axe (100000 gp) Gods Spear (1000000 gp) Soft Boots (20000000 gp) Crystal Mace (50000 gp) Knightmare (30000000 gp)')
focus = cid
talk_start = os.clock()
elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif msgcontains(msg, 'joes jersey') and focus == cid then
buy(cid,2656,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Joe Helm') and focus == cid then
buy(cid,2665,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Joes Skirt') and focus == cid then
buy(cid,3983,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Blessed Shield') and focus == cid then
buy(cid,2523,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Magiclongsword') and focus == cid then
buy(cid,2390,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Throwing Joes') and focus == cid then
buy(cid,3966,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Golden Mace') and focus == cid then
buy(cid,2437,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Great Axe') and focus == cid then
buy(cid,2415,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Gods Spear') and focus == cid then
buy(cid,3965,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Soft Boots') and focus == cid then
buy(cid,2640,1,15000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Knightmare') and focus == cid then
buy(cid,3963,1,20000000)
talk_start = os.clock()
elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
if focus == 0 then
cx, cy, cz = selfGetPosition()
randmove = math.random(1,20)
if randmove == 1 then
nx = cx + 1
end
if randmove == 2 then
nx = cx - 1
end
if randmove == 3 then
ny = cy + 1
end
if randmove == 4 then
ny = cy - 1
end
if randmove >= 5 then
nx = cx
ny = cy
end
moveToPosition(nx, ny, cz)
--summons = 30
--summons2 = 30
end
end

Pozdro,
Gelio
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

To nie dzia?a
napisa? :
Zamiast functions.lua u?yj koniec globals.lua. Na ko?cu dodaj kilka linijek i tam wklejaj to co ma by? w functions.
PS : Jeszcze mam co? takiego jak globalevents.xml w folderze globalevents , tam znajduje si? funkcja clean oraz save
@edit
co mi pokazuje :
[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/poison_arrow.lua

[22/12/2008 17:50:30] luaCreateConditionObject(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/poison_arrow.lua

[22/12/2008 17:50:30] luaSetConditionParam(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/poison_arrow.lua

[22/12/2008 17:50:30] luaAddDamageCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/poison_arrow.lua

[22/12/2008 17:50:30] luaSetCombatCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/viper_star.lua

[22/12/2008 17:50:30] luaCreateConditionObject(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/viper_star.lua

[22/12/2008 17:50:30] luaSetConditionParam(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/viper_star.lua

[22/12/2008 17:50:30] luaAddDamageCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/viper_star.lua

[22/12/2008 17:50:30] luaAddDamageCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/viper_star.lua

[22/12/2008 17:50:30] luaSetCombatCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/crystal arrow.lua

[22/12/2008 17:50:30] luaCreateConditionObject(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/crystal arrow.lua

[22/12/2008 17:50:30] luaSetConditionParam(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/crystal arrow.lua

[22/12/2008 17:50:30] luaAddDamageCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/crystal arrow.lua

[22/12/2008 17:50:30] luaAddDamageCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/crystal arrow.lua

[22/12/2008 17:50:30] luaAddDamageCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Weapon Interface]
[22/12/2008 17:50:30] data/weapons/scripts/crystal arrow.lua

[22/12/2008 17:50:30] luaSetCombatCondition(). Condition not found
[22/12/2008 17:50:30] Warning: [LuaScriptInterface::initState] Can not load data/global.lua.

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/attack/soul fire.lua

[22/12/2008 17:50:30] luaCreateConditionObject(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/attack/soul fire.lua

[22/12/2008 17:50:30] luaSetConditionParam(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/attack/soul fire.lua

[22/12/2008 17:50:30] luaAddDamageCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/attack/soul fire.lua

[22/12/2008 17:50:30] luaSetCombatCondition(). Condition not found
[22/12/2008 17:50:30] Combat::setCallback - Unknown callback type: 0

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/healing/ultimate healing rune.lua

[22/12/2008 17:50:30] luaSetCombatCallBack(). 0 is not a valid callback key.

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune.lua

[22/12/2008 17:50:30] luaCreateConditionObject(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune.lua

[22/12/2008 17:50:30] luaSetConditionParam(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune.lua

[22/12/2008 17:50:30] luaSetConditionFormula(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune.lua

[22/12/2008 17:50:30] luaSetCombatCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune knight.lua

[22/12/2008 17:50:30] luaCreateConditionObject(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune knight.lua

[22/12/2008 17:50:30] luaSetConditionParam(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune knight.lua

[22/12/2008 17:50:30] luaSetConditionFormula(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/support/paralyze rune knight.lua

[22/12/2008 17:50:30] luaSetCombatCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaCreateConditionObject(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaSetConditionParam(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:30] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:30] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:30] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:31] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:31] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:31] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:31] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:31] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:31] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:31] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:31] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:31] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:31] luaAddOutfitCondition(). Condition not found

[22/12/2008 17:50:31] Lua Script Error: [Spell Interface]
[22/12/2008 17:50:31] data/spells/scripts/custom/polymorph.lua

[22/12/2008 17:50:31] luaAddOutfitCondition(). Condition not found



............................... I tak dalej !
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

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 ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then
selfSay('Hello, ' .. creatureGetName(cid) .. '! I sell joes jersey (20000000 gp), joes skirt (20000000 gp) Blessed Shield (200000 gp) MagicLongsword (100000 gp) Throwing Joes (20000000 gp) Golden Mace (100000 gp) Joe Helm (20000000 gp) Great Axe (100000 gp) Gods Spear (1000000 gp) Soft Boots (20000000 gp) Crystal Mace (50000 gp) Knightmare (30000000 gp)')
focus = cid
talk_start = os.clock()
elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif msgcontains(msg, 'joes jersey') and focus == cid then
buy(cid,2656,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Joe Helm') and focus == cid then
buy(cid,2665,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Joes Skirt') and focus == cid then
buy(cid,3983,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Blessed Shield') and focus == cid then
buy(cid,2523,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Magiclongsword') and focus == cid then
buy(cid,2390,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Throwing Joes') and focus == cid then
buy(cid,3966,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Golden Mace') and focus == cid then
buy(cid,2437,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Great Axe') and focus == cid then
buy(cid,2415,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Gods Spear') and focus == cid then
buy(cid,3965,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Soft Boots') and focus == cid then
buy(cid,2640,1,15000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Knightmare') and focus == cid then
buy(cid,3963,1,20000000)
talk_start = os.clock()
elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
if focus == 0 then
cx, cy, cz = selfGetPosition()
randmove = math.random(1,20)
if randmove == 1 then
nx = cx + 1
end
if randmove == 2 then
nx = cx - 1
end
if randmove == 3 then
ny = cy + 1
end
if randmove == 4 then
ny = cy - 1
end
if randmove >= 5 then
nx = cx
ny = cy
end
moveToPosition(nx, ny, cz)
--summons = 30
--summons2 = 30
end
end
No Niby All Dobrze NPC Pojawia Sie Na Mapie Pisze Co ZA iLE Sella Ale jak pisze np joes jorsey to mi tego nie sela :(
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

ej no ...
pisze 3 post a ty dalej nic ;s , pisalem czy ty robisz czy nie (moje spelle) , nie uzyskalem odpowiedzi... napisz wkoncu czy je zrobisz czy mam szukac gdzie inndziej -.-
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

To nie dzia?a
PS : Jeszcze mam co? takiego jak globalevents.xml w folderze globalevents , tam znajduje si? funkcja clean oraz save
@edit
co mi pokazuje :
Hmm.. Niech zgadn?. Wykasowa?e? ca?e globals.lua? Jak nie, to przynajmniej jak?? cz???. Jak tak, to musisz ?ci?gn?? nowe globals.lua i wklei? na ko?cu tego pliku.

Pozdro,
Gelio

Edit:
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 ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then
selfSay('Hello, ' .. creatureGetName(cid) .. '! I sell joes jersey (20000000 gp), joes skirt (20000000 gp) Blessed Shield (200000 gp) MagicLongsword (100000 gp) Throwing Joes (20000000 gp) Golden Mace (100000 gp) Joe Helm (20000000 gp) Great Axe (100000 gp) Gods Spear (1000000 gp) Soft Boots (20000000 gp) Crystal Mace (50000 gp) Knightmare (30000000 gp)')
focus = cid
talk_start = os.clock()
elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif msgcontains(msg, 'joes jersey') and focus == cid then
buy(cid,2656,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Joe Helm') and focus == cid then
buy(cid,2665,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Joes Skirt') and focus == cid then
buy(cid,3983,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Blessed Shield') and focus == cid then
buy(cid,2523,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Magiclongsword') and focus == cid then
buy(cid,2390,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Throwing Joes') and focus == cid then
buy(cid,3966,1,20000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Golden Mace') and focus == cid then
buy(cid,2437,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Great Axe') and focus == cid then
buy(cid,2415,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Gods Spear') and focus == cid then
buy(cid,3965,1,1000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Soft Boots') and focus == cid then
buy(cid,2640,1,15000000)
talk_start = os.clock()
elseif msgcontains(msg, 'Knightmare') and focus == cid then
buy(cid,3963,1,20000000)
talk_start = os.clock()
elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
if focus == 0 then
cx, cy, cz = selfGetPosition()
randmove = math.random(1,20)
if randmove == 1 then
nx = cx + 1
end
if randmove == 2 then
nx = cx - 1
end
if randmove == 3 then
ny = cy + 1
end
if randmove == 4 then
ny = cy - 1
end
if randmove >= 5 then
nx = cx
ny = cy
end
moveToPosition(nx, ny, cz)
--summons = 30
--summons2 = 30
end
end
No Niby All Dobrze NPC Pojawia Sie Na Mapie Pisze Co ZA iLE Sella Ale jak pisze np joes jorsey to mi tego nie sela :(
Nazwy item?w napisz z ma?ej litery. Np.
Great Axe zamie? na great axe. Bo NPC nie rozpoznaje du?ych liter.

Pozdro,
Gelio

Edit:
ej no ...
pisze 3 post a ty dalej nic ;s , pisalem czy ty robisz czy nie (moje spelle) , nie uzyskalem odpowiedzi... napisz wkoncu czy je zrobisz czy mam szukac gdzie inndziej -.-
Daj linka, bo ju? nie wiem.

Pozdro,
Gelio
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Pobra?em nowe globals i wklei?em to na ko?cu zreszt? wtedy te? by?o na ko?cu i to samo nadal jest
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Pobra?em nowe globals i wklei?em to na ko?cu zreszt? wtedy te? by?o na ko?cu i to samo nadal jest
No to niestety nie wiem. Teraz na serio I don't know. Sory, ?e nie mog? pom?c.

Pozdro,
Gelio
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj:Movements
8,1 (EVO)
Potrzebny mi skrypt kt?ry zabiera xxx lvl.
Na forum znalalz?em tylko skrypt kt?ry oddaje xxx lvl.
-----------------------------------
function onStepIn(cid, item, pos)
doPlayerAddExp(cid,1)
end
-----------------------------------
Jakby? umia? przerub go ?eby zabiera?o expa. :(

Z g?ry dzi?ki!
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj:Movements
8,1 (EVO)
Potrzebny mi skrypt kt?ry zabiera xxx lvl.
Na forum znalalz?em tylko skrypt kt?ry oddaje xxx lvl.
-----------------------------------
function onStepIn(cid, item, pos)
doPlayerAddExp(cid,1)
end
-----------------------------------
Jakby? umia? przerub go ?eby zabiera?o expa. :(
Z g?ry dzi?ki!


Spr?buj tak:(nie znam sie ale moze pojdzie)
Kod:
function onStepIn(cid, item, pos)
doPlayerAddExp(cid,[COLOR="Red"]-[/COLOR]ile expa zabiera)
end
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Dobra je?li sie na czym? nei znasz nie wypowiadaj si? !!!! -.-
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

o widzisz nie znam si? ale czasami mi sie udaje :p, pr?bowa?e?, bo jak jest opcja doAddPlayerHealth i sie ustawi minus ile? tam, to odejmuje hp, wi?c tutaj mo?e by? tak samo. :p
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj:Movements
8,1 (EVO)
Potrzebny mi skrypt kt?ry zabiera xxx lvl.
Na forum znalalz?em tylko skrypt kt?ry oddaje xxx lvl.
-----------------------------------
function onStepIn(cid, item, pos)
doPlayerAddExp(cid,1)
end
-----------------------------------
Jakby? umia? przerub go ?eby zabiera?o expa. :(
Z g?ry dzi?ki!
Roki: dobrze ci powiedzia?. Wystarczy da? minus. Np.:
Kod:
doPlayerAddExp(cid,-500)
odejmie ci 500 expa. I jak kto? inny pomaga, to nie bulwersuj si? tak.


Pozdro,
Gelio
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

No w?a?nie!Widzisz :p, m?wi?em, a Gelio ten skrypt na tutorial?Tego akurat nie umiem.
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Siemasz Gelio :) Jestem Skrypterem jak i ty ale pewnie gorszym :P ty robisz dobre skrypty:)...
Prosze cie o przysluge pisze tu 1 posta narazie nie mam czasu wiec czy mozesz zrobic mi skrypta :>??
Actions > 8.31 tibia :)

1.Taki knife podobny do obsidiana ale zbiera wszystkie itemki od addonow, jak wszystkich nie da rade to trudno ale niech duzo bedzie ;]
Np : z dwarfow - Iron ore i dwarfa cialko sie zamienia na takie zgnile itd. Mysle ze wiesz o co chodzi :)
2. ring ktory daje niesmiertelnosc na 1 minute i znika :P
Mam nadzieje ze zrobisz ;]
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj:actions
8.40 TFS
Potrzebuj? exp runki
OPIS:
Mam pro?b? o male?kiego skrypta wiem ze to dal ciebie nie b?dzie trudne wi?c prosz? o t? w?a?nie Exp runk? na TFS"a

Plis szybciorem ;p OTs online a runki nie ma :p
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

No w?a?nie!Widzisz :p, m?wi?em, a Gelio ten skrypt na tutorial?Tego akurat nie umiem.
Narazie na otlandzie napisa?em, bo nie ma funkcji w TFS, kt?ra zatrzymuje gracza. Jak chcesz, to zobacz:

Pozdro,
Gelio

Edit:
Rodzaj:actions
8.40 TFS
Potrzebuj? exp runki
OPIS:
Plis szybciorem ;p OTs online a runki nie ma :p
Masz:
Kod:
function onUse(cid, item, frompos, item2, topos)
local ileExp = 5000  -- Ile expa daje

doPlayerAddExp(cid,ileExp)
doSendAnimatedText(getPlayerPosition(cid),ileExp,TEXTCOLOR_WHITE_EXP)
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGICGREEN)
if (item.type == 1) then
	doRemoveItem(item.uid)
elseif (item.type > 1) then
	doChangeItemType(item.uid,item.type-1)
end
end

Pozdro,
Gelio

Edit:
Siemasz Gelio :) Jestem Skrypterem jak i ty ale pewnie gorszym :P ty robisz dobre skrypty:)...
Prosze cie o przysluge pisze tu 1 posta narazie nie mam czasu wiec czy mozesz zrobic mi skrypta :>??
Actions > 8.31 tibia :)
1.Taki knife podobny do obsidiana ale zbiera wszystkie itemki od addonow, jak wszystkich nie da rade to trudno ale niech duzo bedzie ;]
Np : z dwarfow - Iron ore i dwarfa cialko sie zamienia na takie zgnile itd. Mysle ze wiesz o co chodzi :)
2. ring ktory daje niesmiertelnosc na 1 minute i znika :P
Mam nadzieje ze zrobisz ;]
1.
Kod:
function onUse(cid, item, frompos, item2, topos)
local monsters = {{freshDead = 123, item = 123, corpseDead = 123, chance = 5}}
uzyte = 0

for i=1, #monsters do
	if (item2.itemid == monsters[i].freshDead) then
		local szansa1 = math.random(1,monsters[i].chance)
		local szansa2 = math.random(1,monsters[i].chance)
		if (szansa1 == szansa2) then
		doPlayerAddItem(cid,monsters[i].item,1)
		doSendMagicEffect(topos,CONST_ME_MAGIC_GREEN)
		end
		doTransformItem(item2,monsters[i].corpseDead)
		uzyte = uzyte+1
	end
end
if (uzyte == 0) then
	doPlayerSendCancel(cid,"You can\'t use it")
end
end
Na g?rze wszystko piszesz. Im mniejsza szansa tym cz??ciej ci si? uda u?y?. Nie uzupe?nie ci wszystkiego, bo ja tu pisze skrypty, a u?ytkownicy sobie sami konfiguruj?.

2. Jest gdzie? w tym temacie. Wystarczy poszuka?.

Pozdro,
Gelio
 
Status
Zamknięty.
Do góry