OTServ
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Dirección Ip
[CreatureEvents] First Items 3
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 

 


Rechercher Búsqueda avanzada

Mejores posteadores
XxStroksxX (463)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
~*~[:Đαяќ:]~[:тιβια:]~*~ (366)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
spoor (83)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
Dj Pacos (73)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
God Skit (68)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
GoD MexicanSoul (40)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
fuzzy (35)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
Eddie (31)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
GOD Chimito (30)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 
conalep1996 (23)
[CreatureEvents] First Items Vote1111[CreatureEvents] First Items Vote2111[CreatureEvents] First Items Vote3111 

Últimos temas
» [???] [Super Naruto OT]
[CreatureEvents] First Items Icon_m10Lun Jun 08, 2015 12:08 pm por keishmer91

» [ACTION] God/GM da item a un player
[CreatureEvents] First Items Icon_m10Mar Dic 02, 2014 12:53 pm por hecmanos

» [8.60] Nuevo War Thais By TheRobertxon
[CreatureEvents] First Items Icon_m10Vie Jun 20, 2014 10:56 am por luismc

» [7.92]Naruto Final Story!
[CreatureEvents] First Items Icon_m10Dom Mayo 26, 2013 2:40 am por ricardotuck

» [9.1] Fun Server
[CreatureEvents] First Items Icon_m10Mar Mayo 14, 2013 5:32 pm por skifer

» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
[CreatureEvents] First Items Icon_m10Mar Mayo 14, 2013 5:29 pm por skifer

» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
[CreatureEvents] First Items Icon_m10Mar Mayo 07, 2013 5:27 pm por tonyso

» Ocean Clasic Global Map 8.6
[CreatureEvents] First Items Icon_m10Miér Mayo 01, 2013 11:19 pm por maganiua

» ayuda a abrir puertos
[CreatureEvents] First Items Icon_m10Lun Abr 29, 2013 5:58 pm por XxStroksxX

» [8.60] Speedy War
[CreatureEvents] First Items Icon_m10Dom Abr 28, 2013 5:51 pm por Sunnade'Audio

Upload Images
ImagesHack
Scanner
VirusTotal

[CreatureEvents] First Items

2 participantes

Ir abajo

[CreatureEvents] First Items Empty [CreatureEvents] First Items

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Miér Feb 16, 2011 2:00 pm

este script sirve para cuando entre un player nuevo le de estos items ya adentro de su backpack muy bueno para uno de war (: ahora empezemos vas a CreatureEvents/Scripts y pones


Código:
  local commonItems = {
  -- ITEMS ALL VOCS RECEIVE
  {itemid=1993, count=1}, -- red bag
  {itemid=7591, count=1}, -- great health potion
  {itemid=8473, count=1}, -- ultimate healing potion
  {itemid=7589, count=1}, -- strong mana potion
  {itemid=8472, count=1}, -- great spirit potion
  {itemid=7588, count=1}, -- strong health potion
  {itemid=7590, count=1}, -- great mana potion
  {itemid=5801, count=1}, -- key ring
  {itemid=2293, count=1}, -- magic wall
  {itemid=2261, count=1},-- destroy rune
  {itemid=2268, count=1}, -- sudden death rune
  {itemid=2304, count=1}, -- great fireball rune
  {itemid=2269, count=1}, -- wild growth rune
  {itemid=2305, count=1}, -- fire bomb rune
  {itemid=2273, count=1}, -- ultimate healing rune
  {itemid=2313, count=1}, -- explsion rune
  {itemid=2278, count=1}, -- paralyze rune
  {itemid=2315, count=1}, -- thunderstorm rune
  {itemid=2160, count=2}, -- crystal coin
  {itemid=2285, count=1},-- poision field
  {itemid=2120, count=1}, -- rope
  {itemid=2420, count=1}, -- machete
  {itemid=2789, count=50}, -- brown mushrooms
  {itemid=2195, count=1}, -- boots of haste
    {itemid=2361, count=1}, -- frozen starlight
      {itemid=2171, count=1}, -- platinum amulet
}

local firstItems = {
  { -- SORC ITEMS
    {itemid=2457, count=1}, -- Steel Helmet
    {itemid=2463, count=1}, -- plate armor
    {itemid=2647, count=1}, -- plate legs
    {itemid=2525, count=1}, -- dwarven shield
    {itemid=2188, count=1}, -- wand of decay 
  },
  { -- DRUID ITEMS
    {itemid=2457, count=1}, -- Steel Helmet
    {itemid=2463, count=1}, -- plate armor
    {itemid=2647, count=1}, -- plate legs
    {itemid=2525, count=1}, -- dwarven shield
    {itemid=8911, count=1}, -- northwind rod 
  },
  { -- PALADIN ITEMS
    {itemid=2457, count=1}, -- Steel Helmet
    {itemid=2463, count=1}, -- plate armor
    {itemid=2647, count=1}, -- plate legs
    {itemid=2525, count=1}, -- dwarven shield
    {itemid=7368, count=10}, -- assassin stars
    {itemid=6529, count=10}, -- infernal bolt
    {itemid=2389, count=10}, -- spear
    {itemid=7367, count=10}, -- echanted spear
    {itemid=7438, count=1}, -- elethriel's elemental bow
    {itemid=7839, count=100}, -- shiver arrow
  },
  { -- KNIGHT ITEMS
    {itemid=2457, count=1}, -- Steel Helmet
    {itemid=2463, count=1}, -- plate armor
    {itemid=2647, count=1}, -- plate legs
    {itemid=2525, count=1}, -- dwarven shield
    {itemid=2400, count=1}, -- magic sword
    {itemid=7391, count=1}, -- Thaian Sword
    {itemid=2421, count=1}, -- thunder hammer
    {itemid=2431, count=1}, -- Stonecutter Axe
  }
}

for _, items in ipairs(firstItems) do
  for _, item in ipairs(commonItems) do
    table.insert(items, item)
  end
end

function onLogin(cid)
  if getPlayerGroupId(cid) < 2 then
    local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)

    if hasReceivedFirstItems == -1 then
      --[[local backpack = ]]doPlayerAddItem(cid, 2365, 1)

      local giveItems = firstItems[getPlayerVocation(cid)]

      if giveItems ~= nil then
        for _, v in ipairs(giveItems) do
          --doAddContainerItem(backpack, v.itemid, v.count or 1)
          doPlayerAddItem(cid, v.itemid, v.count or 1)
        end

        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved your equipment")
        setPlayerStorageValue(cid, 67708, 1) 
      end
    end
  end
  return TRUE
end

ahora vas a creatureevent.xml y pones


Código:
<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

si te sirvio dame rep y di gracias
~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

[CreatureEvents] First Items Empty Re: [CreatureEvents] First Items

Mensaje por XxStroksxX Miér Feb 16, 2011 2:07 pm

Gracias + REP
XxStroksxX
XxStroksxX

+ Administrador +
+ Administrador +

¡Sorcerer Rapero!
Masculino España Géminis Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 463
Localización Localización : Barcelona
Fecha de inscripción Fecha de inscripción : 01/08/2010

Hoja de personaje
Personaje: Khail Phount
Vocation: Knight
Mundo: Infernia

http://www.otserv.biz/

Volver arriba Ir abajo

[CreatureEvents] First Items Empty Re: [CreatureEvents] First Items

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Miér Feb 16, 2011 2:20 pm

de nada xD
~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

[CreatureEvents] First Items Empty Re: [CreatureEvents] First Items

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.