Tibia Mod
Forum zostało Przeniesione tutaj:
http://tibiamod.xaa.pl/

Zapraszam.

Join the forum, it's quick and easy

Tibia Mod
Forum zostało Przeniesione tutaj:
http://tibiamod.xaa.pl/

Zapraszam.
Tibia Mod
Czy chcesz zareagować na tę wiadomość? Zarejestruj się na forum za pomocą kilku kliknięć lub zaloguj się, aby kontynuować.

[Mods]System Uśmieszków

Go down

[Mods]System Uśmieszków Empty [Mods]System Uśmieszków

Pisanie by Sedron Pią Lis 16, 2012 1:17 pm

Witam.

Chciałbym wam przedstawić System Uśmieszków.

Instalacja:

1. wchodzimy w data/mods/ i tworzymy plik o nazwie usmiechy.xml i wklejamy do niego:
Kod:

<?xml version="1.0" encoding="UTF-8"?>
<mod name="animated-smiles" version="1.0" author="EddyHavoc" contact="suporte_kanto@live.com" enabled="yes">
<config name="animated-smiles-config"><![CDATA[
  exhaust = 1 -- in seconds
  storage = 3000 -- storage value used to save exhaustion
]]></config>
<talkaction words="xd, :D, ;D, =d, xp, :P, ;p, =p, :O, ;o, ;s, :s, :/, ;/, :*, ;*, =*, :>, ;>, :), ;), =), :(, ;(, =(, :[, ;[, :], ;], :@, ;@, ^^, ^.^, -.-" separator="," logged="no" hidden="yes" case-sensitive="no" event="script"><![CDATA[
  domodlib('animated-smiles-config')
  local config = {
  exhaust = exhaust,
  storage = storage
  }
  function onSay(cid, words, param, channel)
  if(channel ~= CHANNEL_DEFAULT) then
        return false
  end
  if(exhaustion.check(cid, config.storage)) then -- prevent spam
        return true
  end
  if(isInArray({":*", ";*", "=*"}, words)) then
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HEARTS)
  end
  exhaustion.set(cid, config.storage, config.exhaust)
  doCreatureSay(cid, words, TALKTYPE_ORANGE_1)
  return true
  end
]]></talkaction>
</mod>


Koniec.

Pozdrawiam.
Sedron
Sedron
Admin

Liczba postów : 97
Join date : 11/11/2012

https://tibiamod.forumpl.net

Powrót do góry Go down

Powrót do góry

- Similar topics

 
Permissions in this forum:
Nie możesz odpowiadać w tematach