NodZen Posted September 11, 2012 Posted September 11, 2012 Hola amigos , miren , hice un script para que se genere un "nemesis" , pero no funca function boss ( ) slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) outputChatBox ("Nemesis se ah generado") local myBlip = (createBlipAttachedTo ( slothBot, 23 ) end addEventHandler ( "onResourceStart", getRootElement() boss ) En el mtaserver.exe me dice '>' expected near 'end' Ayudenme que esta mal PD: El nemesis no se genera , ni tampoco el blip ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Alexs Posted September 11, 2012 Posted September 11, 2012 function boss ( ) slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) outputChatBox ("Nemesis se ah generado") local myBlip = (createBlipAttachedTo ( slothBot, 23 )) end addEventHandler ( "onResourceStart", getRootElement() boss ) Developer @ MYVAL
NodZen Posted September 11, 2012 Author Posted September 11, 2012 function boss ( ) slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) outputChatBox ("Nemesis se ah generado") local myBlip = (createBlipAttachedTo ( slothBot, 23 )) end addEventHandler ( "onResourceStart", getRootElement() boss ) Es script es type server verdad? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Alexs Posted September 11, 2012 Posted September 11, 2012 function boss ( ) slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) outputChatBox ("Nemesis se ah generado") local myBlip = (createBlipAttachedTo ( slothBot, 23 )) end addEventHandler ( "onResourceStart", getRootElement() boss ) Es script es type server verdad? Si usas ese evento, si. Developer @ MYVAL
NodZen Posted September 11, 2012 Author Posted September 11, 2012 Ok Gracias , lo probare ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
NodZen Posted September 12, 2012 Author Posted September 12, 2012 Alex , sigue sin funcionar mira lo que me sale puse lo que me dijiste ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Arsilex Posted September 12, 2012 Posted September 12, 2012 function boss ( ) slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 36, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 8000 ) outputChatBox ("Nemesis se ah generado") local myBlip = (createBlipAttachedTo ( slothBot, 23 )) end addEventHandler ( "onResourceStart", getRootElement(), boss ) prueba asi
BorderLine Posted September 12, 2012 Posted September 12, 2012 por si no te fijaste, en tu codigo, entre getRootElement() y boss faltaba una "," y ai pekio me parece ke lo reparo Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
NodZen Posted September 12, 2012 Author Posted September 12, 2012 Ya funciona Gracias , ah pero como le hago para que tenga respawn cada 5 minutos? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
BorderLine Posted September 12, 2012 Posted September 12, 2012 setTimer(boss,300000,0) Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
NodZen Posted September 12, 2012 Author Posted September 12, 2012 Ahora el problema es que el skin de ranrom, Pero yo le puse para que sea el ID 287 pero no funciona el script... ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
BorderLine Posted September 12, 2012 Posted September 12, 2012 function boss ( ) slothBot = exports [ "slothBot" ]:spawnBot ( 2294.82, 2450.75, 10.82, 90, 287, 0, 0, Nemesis, 36, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothBot, 8000 ) outputChatBox ("Nemesis se ah generado") local myBlip = (createBlipAttachedTo ( slothBot, 23 )) end addEventHandler ( "onResourceStart", getRootElement(), boss ) a todo esto, que es lo que no funciona? no da spawn? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
NodZen Posted September 13, 2012 Author Posted September 13, 2012 No , no hay problema el slothBot se genera perfecto , solo que en la parte del skin esta random , pero Yo quiero ponerle para que sea el ID 287. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Arsilex Posted September 13, 2012 Posted September 13, 2012 y si pruebas usas setElementModel ( slothBot, 287 )
NodZen Posted September 13, 2012 Author Posted September 13, 2012 Gracias Pekio , funciona perfecto ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Plate Posted September 13, 2012 Posted September 13, 2012 No es necesario eso simplemente cambias el math.random y enves de eso pones el 287 Y ese script de donde lo sacastes por que si lo hisistes vos supongo que deves saber donde va el skin Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
NodZen Posted September 14, 2012 Author Posted September 14, 2012 No es necesario eso simplemente cambias el math.random y enves de eso pones el 287Y ese script de donde lo sacastes por que si lo hisistes vos supongo que deves saber donde va el skin `Supones que alguien lo hizo por Mi? Le puse math.random para probar si el script funcionaba. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Arsilex Posted September 14, 2012 Posted September 14, 2012 Plate ese script son 2 script osea es el script de la comunidad el de extrahealth de Castillo y Zombies de SlothMachine o lago asi no me acuerdo...
Recommended Posts