Nie tylko o Tibii i OTS...
Zbanowany
Skypt gratuluje setnej osobie na serverze. nie bede duzo sie rozpisywal
SKRYPT NIE JEST MOJ
tworzymy w movements plik visitor.lua
function onStepIn(cid, item, pos) congratsnum = 100 -- The visitor number to get the prize num = 10042 -- The storage value incase the one i set was taken prize = 2412 -- ID for the item they win visitornum = getGlobalStorageValue(num) visited = getPlayerStorageValue(cid,num) if visited ~= 1 then setPlayerStorageValue(cid,num,1) if congratsnum == 1 then setGlobalStorageValue(num,visitornum+1) doPlayerSendTextMessage(cid,22,'CONGRATULATIONS! You are the '..congratsnum..'th character on this server!. You won a ' .. getItemName(prize) .. '.') doPlayerAddItem(cid,prize,1) elseif visitornum == (congratsnum - 1) then setGlobalStorageValue(num,visitornum+1) doPlayerSendTextMessage(cid,22,'CONGRATULATIONS! You are the '..congratsnum..'th character on this server!. You won a ' .. getItemName(prize) .. '.') doPlayerAddItem(cid,prize,1) else setGlobalStorageValue(num,visitornum+1) end else return 0 end end
in movements.xml
<movevent event="StepIn" actionid="10042" script="visitor.lua" />
Script is rather customisable, if it doesnt work tell me I aint tested it, to test i suggest using a smaller number.
Set the actionid to the tiles of the temple that people start in
Powtarzam skrypt nie jest mój ,skrypt wzięty z pewnego forum ( nie chce reklamować
Ostatnio edytowany przez Maly Wizak (2008-11-04 20:37:41)
Offline
Fajny Fajny
mi sie podoba tylko ze nienawszystkich OTs gra 100 osub mogl izrobic od 50 a potem 10,150 i tak dalej ale fajny 9/10
Offline
Zbanowany
@up
To jest bardzo prosto zrobić
Spoiler:
function onStepIn(cid, item, pos)
congratsnum = 100 -- The visitor number to get the prize
num = 10042 -- The storage value incase the one i set was taken
Wystarczy to zmienić na (10, 50, 100) Co chcerz ;D
Offline
No fajny skrypt, ale mało przydatny . Mi się nie przyda.
Offline
Zbanowany
@up
To jest nabijanie postów! (zawsze pisze się na pw !!)
I podaj mi ten temat ... Bo ja szukałem i znaleść nie umiałem !
Więc...
Offline
Zbanowany
@up
Po co on ma nabijać jak jest Redaktorem?
@top
Ofc, fajny skrypt 10/10
Offline
Fajny Post
Offline
A dało by sie zrobić żeby osobie która dobiła np 50 lvl a potem 100 itd miała gratulacje?
Offline
@up
Da się tylko na to jest inny skrypt (jak wrócę na mój PC bo na razie na laptopie przyjadę do siebie to poszukam napisze na prw)
@topic
Skrypt przydatny 8/10 Ale lepiej jest z lvl albo magic bądz skille
(Nie całe 2 dni to nie odświeżanie!)
@edit
SKRYPT NIE JEST MOJ
Więc + nie dam
@Wizak
@up
To jest nabijanie postów! (zawsze pisze się na pw !!)
I podaj mi ten temat ... Bo ja szukałem i znaleść nie umiałem !
Więc...
Dam ci - bo nabijasz tym posty, napisałeś na początku że nie jest twój to skąś go masz więc ...
Ostatnio edytowany przez Drakko (2009-01-01 01:20:02)
Offline