
Nie tylko o Tibii i OTS...
Zbanowany
hej
mam wam do zapisania sobie na otsku npc majkel dzekson
wchodzimy do data/npc i robimy plik XML o nazwie Majkel Dzekson.xml i wklejamy to
<?xml version="1.0"?>
<npc name="Majkel Dzekson" script="data/npc/scripts/rook runes.lua" access="3">
<look type="5148" head="20" body="30" legs="40" feet="50"/>
</npc>potem wchodzimy do data/npc/scripts i robimy plik LUA o nazwie rook runes.lua i wklejamy to
focus = 0
talk_start = 0
target = 0
following = false
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') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hello ' .. creatureGetName(cid) .. '! I sell runes, wands and rods.. And 1 NEW Rune "Spiral" :D If u want to know how to make Spiral rune then say Death.')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'runes') then
selfSay('Sprzedaje runy na rooku.. mam do zaoferowania: Sudden Rook(1,5k), Heavy Magic Rookgarden(350), Ultimate Rook Healing(1k), Rook Lifedrain(1250), Rookball(400) 10 ladunkowe. Aby kupic runki po 100 ladunkow powiedz np. 100 sudden rook.')
elseif msgcontains(msg, 'sudden rook') then
buy(cid,2280,10,1500)
elseif msgcontains(msg, 'ultimate rook healing') then
buy(cid,2281,10,1000)
elseif msgcontains(msg, 'rookball') then
buy(cid,2288,10,400)
elseif msgcontains(msg, 'rook lifedrain') then
buy(cid,2283,10,1250)
elseif msgcontains(msg, 'heavy magic rookgarden') then
buy(cid,2295,10,350)
elseif msgcontains(msg, '100 sudden rook') then
buy(cid,2280,10,6500)
elseif msgcontains(msg, '100 ultimate rook healing') then
buy(cid,2281,10,5000)
elseif msgcontains(msg, '100 rookball') then
buy(cid,2288,10,2250)
elseif msgcontains(msg, '100 rook lifedrain') then
buy(cid,2283,10,8000)
elseif msgcontains(msg, '100 heavy magic rookgarden') then
buy(cid,2295,10,2000)
elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
end
function onCreatureChangeOutfit(creature)the end narka xd
Offline

Proszę powiedz mi co on robi bo według mnie taki npc to śmiec chcyba ze ma pożądne funkcje
Offline

Jak mam go wsadzić w mapeditor bo jak to wklejam
<creature looktype="5148" name="Majkel Dzekson" head="20" body="30" legs="40" feet="50" type="npc"/>
to mi błąd wyskakuje przy włączaniu map editora
______________________________________________________________________
|raport______________________________________________________________|X|
| |
| Something bad happened in your program, would you like to save a diagnostic file?|
| ____________ ______________ |
| |____Tak_____| |_____Nie______| |
|_____________________________________________________________________|
jak wezme Tak to
_______________________________________________________________
|raport_______________________________________________________|X|
| |
| Saved dump file to 'C:\DOCUME~1\Wojtek\USTAWI~1\Temp\report.dmp' |
| _____________ |
| |_____OK_____| |
|______________________________________________________________|
a jak wezme Nie
___________________________________________________________________________
|OTServ Map Editor___________________________________________________________|
| |
| Wystąpił problem z aplikacją OT Serv Map Editor i zostanie ona zamknieta |
| Przepraszamy za problemy |
|__________________________________________________________________________|
| Jeżeli jesteś w trakcie pracy, informacje, nad którymi pracujesz, mogły zostać utracone |
| |
|Przekaż informacje o tym problemie firmie Microsoft. |
|Utworzyliśmy raport o błędach, który możesz przesłać. Raport ten zostanie |
|potraktowany poufnie i anonimowo |
|Aby zobaczyć, co zawiera ten raport o błędach kliknij tutaj |
| __________ _____________________ ____________ |
| |__Debuguj_| |_Wyślij raport o błędach_| |_Nie wysyłaj_||
|__________________________________________________________________________ |
Ostatnio edytowany przez wojtek15 (2007-08-16 08:09:09)
Offline

8560857fajne
Ostatnio edytowany przez Tenktowlasnieja (2008-02-05 15:37:45)
Offline
Wyskakuje wam poniewarz ta linijka
<creature looktype="5148" name="Majkel Dzekson" head="20" body="30" legs="40" feet="50" type="npc"/>
jest na wklejenie creature potworkamoze sprubujcie tak
<npc name="Majkel Dzekson" head="20" body="30" legs="40" feet="50" type="npc"/>
podkreslam NPC
chyba o to chodzi jak nie o to to przepraszam

Offline

a sprobujcie tak <creature itemid="8368" name="Majkel Dzekson" type="npc"/> na ots bedzie wygladal normalnie w map edytorze jak monk
Offline
Zbanowany
Wiecie że połowa MapEdytorów ma ten sam błąd? Wg. mnie jest to wina MapEditora a nie Dżeksona...


Offline

Spoko npc...tylko co on ciekawego robi xDD
Offline