Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- ui.addPopup(1,0,"<p align='center'><font size='20'><b>Bienvenue dans <font face='Time Sans MS'>Special Agents Mices</font> !</b><br></font><font size='12'>Cette tribu est actuellement morte, mais nous essayons de la faire revivre!<br>Si vous shouaitez nous aider, <b>invitez vos amis</b> et faites de la <b>pub</b> !<br><br>Et si vous voulez vous amuser, n'hésitez pas a demander au chef de la tribu Nathaan, ou à d'autres membres !<br><br><font size='10'>Merci d'avoir rejoind la tribu, et surtout, invitez vos amis, et essayez de la faire <b>revivre</b> !</font>",playerName,180,110,480)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventKeyboard(name,key,down,x,y)
- if key==32 then
- tfm.exec.movePlayer(name,0,0,true,0,-50,false)
- end
- end
- fly = true
- function eventNewGame()
- for p in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(p, 32, true, true)
- end
- end
- function eventKeyboard(p, key)
- if fly and key == 32 then
- tfm.exec.movePlayer(p, 0, 0, true, 0, -50, true)
- end
- end
- function eventChatCommand(p, c)
- if c == "fly" then
- fly = not fly
- end
- end
- ui.addTextArea("1","<J><font size='14'><b><font size='20' color='#606090'>¡Bienvenidos a AXIS'!</font></b></font>",name,"280","50","360","99999","0","0")
- ui.addTextArea("2","<J><font size='14'><font size='20' color='#E01B5D'>¡¡DALE A <b>ESPACIO</b> PARA VOLAR!!</font></font>",name,"200","200","400","100","0","0")
- ui.addTextArea("3","<J><font face='Soopafresh' color='#2F7FCC' size='15'>Los códigos han sido elaborados por Aritxy, agradecimientos especiales a <b>Zfc</b><N>",name,"20","375","800","99999","0","0")
- tfm.exec.setUIShamanName("<J><font size='14'><font size='15' color='#E01B5D'>AXIS'</font></font>")
- tfm.exec.setUIMapName("<J><font size='14'><font size='15' color='#E01B5D'>AXIS'</font></font>")
- ui.addPopup("4","<J><font size='12'><b><font size='15' color='#009D9D'>¿Te gusta la tribu AXIS'?</font></b></font>" ,player,700,300,190)
- function eventPopupAnswer(popupId,playerName,answer)
- if popupId == 0 then
- print(playerName..": "..answer)
- end
- end
- ui.addTextArea("5","<J><font size='14'><font size='20' color='#E01B5D'>¡¡CLIKA EN ALGUNA PARTE DEL MAPA PARA <b>CONJUGAR</b>!!</font></font>",name,"200","300","400","99999","0","0")
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- end
- function eventMouse(name, x, y)
- tfm.exec.addConjuration(x/10, y/10, 10000)
- end
- tfm.exec.disableAutoScore(true)
- function eventChatCommand(playerName, message)
- if message=="comandos" then
- ui.addPopup("6", 0, "<J><font color='#009D9D' size='15'><b>Comandos:</b> <b>!meep</b> - Activas el meep para ti. <b>!sham</b> - Te conviertes en chamán. <b>!vamp</b> - Te conviertes en vampiro. <b>!death</b> - Mueres. <b>!snow</b> - Empieza a nevar.", playerName, -100, 100, 200)
- end
- if message=="meep" then
- tfm.exec.giveMeep(playerName)
- end
- if message=="vamp" then
- tfm.exec.setVampirePlayer(playerName)
- end
- if message=="death" then
- tfm.exec.killPlayer(playerName)
- end
- if message=="snow" then
- tfm.exec.snow()
- end
- if message=="sham" then
- tfm.exec.setShaman(playerName)
- end
- if message=="black" then
- tfm.exec.setNameColor(playerName, 0x000000)
- end
- if message=="white" then
- tfm.exec.setNameColor(playerName, 0xFFFFFF)
- end
- if message=="red" then
- tfm.exec.setNameColor(playerName, 0xFF0000)
- end
- if message=="orange" then
- tfm.exec.setNameColor(playerName, 0xFF8000)
- end
- if message=="yellow" then
- tfm.exec.setNameColor(playerName, 0xFFFF00)
- end
- if message=="green" then
- tfm.exec.setNameColor(playerName, 0x00FF00)
- end
- if message=="blue" then
- tfm.exec.setNameColor(playerName, 0x0000FF)
- end
- if message=="purple" then
- tfm.exec.setNameColor(playerName, 0x660099)
- end
- if command=="q1" then
- ui.addPopup(20,1,"<p align='center'><font size='30'><b><font face='Time Sans MS'>AXIS'</font></b><br></font><font size='15'>We like the tribe ?",all,200,50,400)
- end
- end
- function eventEmotePlayed(playerName, emote)
- if emote==6 then
- ui.addPopup(12,2,"<p align='center'><font size='30'><b><font face='Time Sans MS'>AXIS'</font></b><br></font><font size='15'>Your Special Message",playerName,200,50,400)
- end
- end
- function eventPopupAnswer(idpopup, playerName, answer)
- if idpopup==12 then
- print("<font color='#009D9D'>["..playerName.."]</font> <font color='#C2C2DA'>"..answer.."</font>")
- ui.addPopup(13, 0, "<font color='#009D9D' size='15'>["..playerName.."]</font> <font size='15'>"..answer.."</font>", nil, 0, 24, 800)
- end
- end
- function eventPopupAnswer(popupId, playerName, reponse)
- if (popupId == 20) then
- if reponse=="yes" then
- ui.addPopup(0,0,playerName.." like the tribe.",everdybody,200,50,100)
- end
- if reponse=="no" then
- ui.addPopup(0,0,playerName.." didn't like the tribe.",everybody,200,100,100)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement