#1 2009-12-28 14:38:57

 jumping ray

http://i37.tinypic.com/28ajhip.gif

11415531
Call me!
Skąd: w-wa
Zarejestrowany: 2008-11-01
Posty: 742
Nick: Time
Profesja: 2
Server: Electro
WWW

[Potrzebuję skryptów] Pokemon Ots :D

więc potrzebuje skryptów do pokemon ots będę w temacie zamieszczał co mi potrzeba

Atak dla pikaczu wali przed siebie (4-5 Kratek) piorunami Sam atak ;p

Pokebolem (dajcie w skrypcie Pokebol zamiast numeru) na deadniętego pokemona się klika i on wlatuje do pokebola później można go jako summon ożywić. i że da się nosić tylko 10 pokeboli a reszta musi zostać w deppo

Ostatnio edytowany przez jumping ray (2009-12-28 14:39:40)

Offline

 

#2 2009-12-28 19:45:22

Robert

http://i36.tinypic.com/9vjf9v.gif

Skąd: Las Vegas
Zarejestrowany: 2008-07-01
Posty: 1493

Re: [Potrzebuję skryptów] Pokemon Ots :D

Czar:
data/spells spells.xml:

Kod:

<instant name="Pikachu beam" words="pikachu beam" direction="1" lvl="20" maglv="10" mana="100" soul="0" exhaustion="1" prem="0" enabled="1" script="pikachu beam.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/></instant>

data/spells/scripts pikachu beam.lua:

Kod:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 48)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.4, -30, -1.8, 0)
local arr = {
{0, 1, 0},
{0, 1, 0},
{0, 1, 0},
{0, 1, 0},
{0, 1, 0},
{0, 3, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
          return doCombat(cid, combat, var)
end

A pokeball

Do Functions.lua dodaj:

Kod:

_warpzone = 2147483648 -- start storing strings here (THIS IS THE ABSOLUTE MAXIMUM VALUE FOR THIS)
_maxlength = 1024 -- multiply by 3 to get the true length.
setPlayerStorageInteger = setPlayerStorageValue
getPlayerStorageInteger = getPlayerStorageValue
function setPlayerStorageString(cid, key, value)
    if #value > (_maxlength-1) * 3 - 1 then -- Last word is reserved for 0 termination of the string.
        error("Storage string is too long")
    end
    if key > _warpzone / _maxlength then
        error("Storage string key is too large (" .. key .. ")")
    end
    key = _warpzone + key * _maxlength
    local word = 0
    local wordwrap = 0
    local wordcount = 0
    local i = 1
    while i <= #value do
        local byte = string.byte(string.sub(value, i, i))
        word = bit.bor(word, bit.lshift(byte, wordwrap))
        wordwrap = wordwrap + 8
        if wordwrap == 24 then
            --[[
                In the ideal world we would be able to store 4 characters per word,
                however, as the default return value for getPlayerStorageValue is
                -1, we can't use the last bit.
            ]]--
            setPlayerStorageInteger(cid, key + wordcount, word)
            word = 0
            wordwrap = 0
            wordcount = wordcount + 1
        end
        i = i + 1
    end
    -- store the last word
    setPlayerStorageInteger(cid, key + wordcount, word)
end
function getPlayerStorageString(cid, key)
    if key > _warpzone / _maxlength then
        error("Storage string key is too large (" .. key .. ")")
    end
    key = _warpzone + key * _maxlength
    local wordcount = 0
    local str = ""
    while true do
        if wordcount >= _maxlength then
            break
        end
        local word = getPlayerStorageInteger(cid, key + wordcount)
        if word == -1 then
            -- end of string
            break
        else 
            -- Extract the 3 characters from the value
            byte = bit.band(word, 255)
            if byte == 0 then break else str = str .. string.char(byte) end
            byte = bit.rshift(bit.band(word, 65280), 8)
            if byte == 0 then break else str = str .. string.char(byte) end
            byte = bit.rshift(bit.band(word, 16711680), 16)
            if byte == 0 then break else str = str .. string.char(byte) end
        end
        wordcount = wordcount + 1
    end
    return str
end

i

Kod:

function doConvinceSummon(cid, creature, amount, pos)
summonplayerpos = {x=pos.x, y=pos.y, z=pos.z, stackpos=253}
summonplayer = getThingfromPos(summonplayerpos)
    if(summonplayer ~= nil and summonplayer.itemid > 0) then    
        doPlayerSendCancel(cid,"There is not enough room to summon here.")
        ret = 0
    else
        convince = doSummonCreature(creature, pos)
        doConvinceCreature(cid, convince)
        ret = 1
end
        return ret
end

w Data/Actions/Scripts/ zrob plik pokeball.lua A w nim:

Kod:

--[[Created
## by Nahruto ##
   Edited by
 #Arkam Shadow#
]]--
local status_storage = 25650
local nazwa_poka = 25651
local destroyprocent = 80 ---ILE % NA ZNISZCZENIE POKE BALL
local efekt = 20 ---EFEKT POKEBALLA
function onUse(cid, item, frompos, item2, topos)
stat_pokeballa = getPlayerStorageValue(cid, status_storage)
name = getPlayerStorageString(cid, nazwa_poka)
if getTilePzInfo(topos) == 0 and getTilePzInfo(frompos) == 0 then
if stat_pokeballa == -1 then
    pokemonpos = {x = topos.x, y = topos.y, z = topos.z, stackpos = 253}
    poke = getThingfromPos(pokemonpos)
    if poke.itemid > 0 then
        if isCreature(poke.uid) == 1 and isPlayer(poke.uid) == 0 then
            nazwapoka = getCreatureName(poke.uid)
            setPlayerStorageString(cid, nazwa_poka, "" .. nazwapoka .. "")
            doRemoveCreature(poke.uid)
            doSendDistanceShoot(frompos, topos, efekt)
            setPlayerStorageValue(cid, status_storage, 1)
            doSetItemSpecialDescription(item.uid, "tam jest " .. nazwapoka .. ".")
        else
            doPlayerSendCancel(cid, "Nie mozesz zlapac tego PokeMona")
        end
                                        if(destroyprocent > 0) then
                              if(math.random(1,100) <= destroyprocent) then
                                        doRemoveItem(item.uid,1)
                                        doPlayerSendCancel(cid,"PokeBall Zniszczony")
                                        return TRUE
                              end
                    end
    else
        doPlayerSendCancel(cid, "Creature not found")
    end
elseif stat_pokeballa == 1 then    
    doConvinceSummon(cid, name, 0, topos)
    doSendDistanceShoot(frompos, topos, efekt)
    doPlayerSay(cid, "" .. name .. " Wybieram Cie", TALKTYPE_SAY)
    setPlayerStorageValue(cid, status_storage, -1)
    doSetItemSpecialDescription(item.uid, "Jest Pusty.")
end
else
    doPlayerSendCancel(cid,"Nie mozesz uzywac PokeBall na Protection Zone.")
end
return 1
end

w data/actions/actions.xml dodaj:
<action itemid="xxxx" script="pokeball.lua" allowfaruse="1" blockwalls="1" />

Nie jestem autorem żadnego ze skryptów, żeby nie było płaczu

#down
Ah :x

Ostatnio edytowany przez Robert (2009-12-28 20:23:00)


kappa?

Offline

 

#3 2009-12-28 20:03:29

 jumping ray

http://i37.tinypic.com/28ajhip.gif

11415531
Call me!
Skąd: w-wa
Zarejestrowany: 2008-11-01
Posty: 742
Nick: Time
Profesja: 2
Server: Electro
WWW

Re: [Potrzebuję skryptów] Pokemon Ots :D

no niestety... potrzebuję pod 7.6 ;P

Offline

 

#4 2009-12-28 20:18:34

 jumping ray

http://i37.tinypic.com/28ajhip.gif

11415531
Call me!
Skąd: w-wa
Zarejestrowany: 2008-11-01
Posty: 742
Nick: Time
Profesja: 2
Server: Electro
WWW

Re: [Potrzebuję skryptów] Pokemon Ots :D

Kurwa mać! za spam dziękujemy ...

Offline

 

#5 2009-12-30 18:39:59

 <<_Regreen_>>

http://i37.tinypic.com/zmmamp.gif

9552101
Skąd: Giżycko
Zarejestrowany: 2009-12-28
Posty: 43

Re: [Potrzebuję skryptów] Pokemon Ots :D

Logi raportuje ....

Jumping Ray poszukaj na google co ci szkodzi

Offline

 

#6 2010-01-03 18:03:11

 jumping ray

http://i37.tinypic.com/28ajhip.gif

11415531
Call me!
Skąd: w-wa
Zarejestrowany: 2008-11-01
Posty: 742
Nick: Time
Profesja: 2
Server: Electro
WWW

Re: [Potrzebuję skryptów] Pokemon Ots :D

teraz potrzebuje;
Gdy klikamy w Item o ID X wtedy z Profesji A zmieniamy się na profesje B a przedmiot znika

Offline

 

#7 2010-01-03 19:11:02

 Dantez

http://i37.tinypic.com/2rxttv8.gif

Skąd: Częstochowa
Zarejestrowany: 2008-03-17
Posty: 1946
Nick: Danreg
Profesja: Elite Knight
Server: Celesta
Level: 116

Re: [Potrzebuję skryptów] Pokemon Ots :D

Masz na PW


2009-02-23 - data mianowania na Redaktora
2010-08-26 - data rezygnacji
http://img268.imageshack.us/img268/9939/25985.png

Offline

 

#8 2010-01-03 19:33:43

 Dawid2098

http://i34.tinypic.com/28ko5qb.gif

10386599
Skąd: Tychy
Zarejestrowany: 2009-09-17
Posty: 50
Nick: Master Sorcerer of Van
Profesja: Vanilla OTS c17.pl
Server: 128
WWW

Re: [Potrzebuję skryptów] Pokemon Ots :D

Dantez Mógłbyś Podać mi także Ten Skrypt??

Za Pomoc Dam "+" !


http://s2.tibiafun.y0.pl/char.php?c=Dawid2098

Link do tematu ze Skórką z Windowsa 7:
http://rapidshare.com/files/329844057/S … t.rar.html

Offline

 

#9 2010-03-05 15:35:05

 Diablo99

http://i37.tinypic.com/2dqpohz.gif

Zarejestrowany: 2010-01-24
Posty: 20

Re: [Potrzebuję skryptów] Pokemon Ots :D

lol poco takie skrypty jak nikt na pokemon otsach nie gra

bez obrazy

Offline

 

#10 2010-03-21 09:57:53

 Glovers

http://i33.tinypic.com/21bk4jn.jpg

19701223
Call me!
Skąd: Jeżyce
Zarejestrowany: 2010-01-29
Posty: 156
Nick: Glovers
Profesja: Dbv ;]
Server: 300+
WWW

Re: [Potrzebuję skryptów] Pokemon Ots :D

jak zrobisz otsa to napisz na forum potem stronke i td.;D

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
nalewka z języcznika