MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides  
Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Discussion
Reload this Page Need a fix for this script
Emulator Server Discussion World of Warcraft Emulator Server general chat .
[NO Questions here]

Reply
 
LinkBack Thread Tools
Need a fix for this script
(#1)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
Request Need a fix for this script - 02-29-2008

Could someone fix this lua script for me? I'm pretty sure it would work but its not even loading

Error is something like: ' end ' expected <to close 'function' at line 35> near `<eof>



function Onyxia_Firenova(Unit)
Unit:CastSpell(37371)
end

function Onyxia_Coneoffire(Unit)
Unit:CastSpell(36876)
end

function Onyxia_Fieryblast(Unit)
Unit:CastSpell(38382)
end

function Onyxia_Thickskin(Unit)
Unit:CastSpell(43823)
end

function Onyxia_Burningwish(Unit)
Unit:CastSpell(18789)
end

function Onyxia_Burningrage(Unit)
Unit:CastSpell(38771)
end

function Onyxia_OnCombat(Unit, Event)
Unit:SendChatMessage (11, 0, "You killed me once,now i am back and i wont let it happen again!")
Unit:RegisterEvent("Onyxia_Firenova",50000, 0)
Unit:RegisterEvent("Onyxia_Coneoffire",30000, 0)
Unit:RegisterEvent("Onyxia_Fieryblast",25000, 0)
Unit:RegisterEvent("Onyxia_Thickskin",500, 0)
Unit:RegisterEvent("Onyxia_Burningwish",40000, 0)
Unit:RegisterEvent("Onyxia_Burningrage",25000, 0)
end

function Onyxia_OnKill(Unit, event)
Killchoice=math.random()
if Killchoice > .5 then
Unit:SendChatMessage(12,0,"Burn!!")
else
Unit:SendChatMessage(12,0,"You gonna fail!")

end

function Onyxia_OnDied(Unit)
Unit:SendChatMessage(12,0,"No....not again!!!")
Unit:RemoveEvents()
end

function Onyxia_OnLeaveCombat(Unit)
Unit:SendChatMessage(12,0,"I will be waiting...!")
Unit:RemoveEvents()
end

RegisterUnitEvent(111112, 1,"Onyxia_OnCombat")
RegisterUnitEvent(111112,2,"Onyxia_OnLeaveCombat")
RegisterUnitEvent(111112,3,"Onyxia_OnKill")
RegisterUnitEvent(111112,4,"Onyxia_OnDied")
Reply With Quote

Donate to remove ads.
(#2)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
02-29-2008

any idea guys?
Reply With Quote
(#3)
Old
*Alexz*'s Avatar
*Alexz* is Offline
Contributor
Rep Power: 2
Reputation: 104
*Alexz* will become famous soon enough*Alexz* will become famous soon enough
 
Posts: 504
Join Date: May 2007
Location: Abyss Wow
02-29-2008

make that
Code:
function Onyxia_OnKill(Unit, event)
Killchoice=math.random()
if Killchoice > .5 then
Unit:SendChatMessage(12,0,"Burn!!")
else
Unit:SendChatMessage(12,0,"You gonna fail!")

end
look like this

Code:
function Onyxia_OnKill(Unit, event)
Killchoice=math.random()
if Killchoice > .5 then
Unit:SendChatMessage(12,0,"Burn!!")
else
Unit:SendChatMessage(12,0,"You gonna fail!")
end



MSN- Alexz12774 @live.com
Reply With Quote
(#4)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
02-29-2008

kk ill if it work

Editidnt work , still not able to load it

Last edited by Arugos; 02-29-2008 at 10:54 PM..
Reply With Quote
(#5)
Old
*Alexz*'s Avatar
*Alexz* is Offline
Contributor
Rep Power: 2
Reputation: 104
*Alexz* will become famous soon enough*Alexz* will become famous soon enough
 
Posts: 504
Join Date: May 2007
Location: Abyss Wow
02-29-2008

try adding an extra enter under that end i told you to remove te enter from above error says the end is to close to it lol



MSN- Alexz12774 @live.com
Reply With Quote
(#6)
Old
fastelf's Avatar
fastelf is Offline
Master Sergeant
Rep Power: 2
Reputation: 20
fastelf is on a distinguished road
 
Posts: 134
Join Date: Apr 2007
02-29-2008

Could be so simple has he hasn't enabled LUA in his ascent.conf file..
Reply With Quote
(#7)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
02-29-2008

stop trying to look genious fast elf , i enabled lua...i said i could not load the script ...read before..posting..

Edit: The script is still not working dude :P , well maybe im doing it wrong , can u post me the script in a code box? plz

Last edited by Arugos; 02-29-2008 at 11:08 PM..
Reply With Quote
(#8)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
02-29-2008

someone could post me a fixed version of this script? plz this is needed for one of the main boss of my server ,i will
Reply With Quote
(#9)
Old
Performer's Avatar
Performer is Offline
Contributor
Rep Power: 2
Reputation: 104
Performer will become famous soon enoughPerformer will become famous soon enough
 
Posts: 506
Join Date: Nov 2007
02-29-2008

Try This.


Code:
 
function Onyxia_Firenova(Unit)
Unit:CastSpell(37371)
end
function Onyxia_Coneoffire(Unit)
Unit:CastSpell(36876)
end
function Onyxia_Fieryblast(Unit)
Unit:CastSpell(38382)
end
function Onyxia_Thickskin(Unit)
Unit:CastSpell(43823)
end
function Onyxia_Burningwish(Unit)
Unit:CastSpell(18789)
end
function Onyxia_Burningrage(Unit)
Unit:CastSpell(38771)
end
function Onyxia_OnCombat(Unit, Event)
Unit:SendChatMessage (11, 0, "You killed me once,now i am back and i wont let it happen again!")
end
function Onyxia_OnKill(Unit, event)
Killchoice=math.random()
if Killchoice > .5 then
Unit:SendChatMessage(12,0,"Burn!!")
else
Unit:SendChatMessage(12,0,"You gonna fail!")
end
function Onyxia_OnDied(Unit)
Unit:SendChatMessage(12,0,"No....not again!!!")
Unit:RemoveEvents()
end
function Onyxia_OnLeaveCombat(Unit)
Unit:SendChatMessage(12,0,"I will be waiting...!")
Unit:RemoveEvents()
end 
Unit:RegisterEvent("Onyxia_Firenova",50000, 0)
Unit:RegisterEvent("Onyxia_Coneoffire",30000, 0)
Unit:RegisterEvent("Onyxia_Fieryblast",25000, 0)
Unit:RegisterEvent("Onyxia_Thickskin",500, 0)
Unit:RegisterEvent("Onyxia_Burningwish",40000, 0)
Unit:RegisterEvent("Onyxia_Burningrage",25000, 0)
RegisterUnitEvent(111112, 1,"Onyxia_OnCombat")
RegisterUnitEvent(111112,3,"Onyxia_OnKill")
RegisterUnitEvent(111112,4,"Onyxia_OnDied")
RegisterUnitEvent(111112,2,"Onyxia_OnLeaveCombat")





Last edited by Performer; 02-29-2008 at 11:49 PM..
Reply With Quote
(#10)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
03-01-2008

ty dude , ill test it



Edit: WHAT THE HELL! still not working...grr now i get an error at line 22

Last edited by Arugos; 03-01-2008 at 11:00 AM..
Reply With Quote
(#11)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
03-01-2008

oh god any expert could help me?
Reply With Quote
(#12)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
03-01-2008

come on......
Reply With Quote
(#13)
Old
Snailz's Avatar
Snailz is Offline
Contributor
Rep Power: 2
Reputation: 228
Snailz has a spectacular aura aboutSnailz has a spectacular aura aboutSnailz has a spectacular aura about
 
Posts: 908
Join Date: Nov 2007
Location: My SVN!
03-01-2008

1. Please tell me Creture ID is
111112

2.
RegisterUnitEvent(111112, 1,"Onyxia_OnCombat")
RegisterUnitEvent(111112, 3,"Onyxia_OnKill")
RegisterUnitEvent(111112, 4,"Onyxia_OnDied")
RegisterUnitEvent(111112, 2,"Onyxia_OnLeaveCombat")

3. Change all Units to pUnit


Skill in C++
####################

Reply With Quote
(#14)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
03-01-2008

yes the creature id is 111112 . dude the prob is the script is not loading , i get an error when i try to load it in ascent.exe


i get an error at line 22 when i try to load it and btw , someone on ascentemu said :

well you need to make a function that contains all the unit:RegisterEvent()

like

function example_funct(Unit, Event)
unit:RegisterEvent(subfunct_one)
unit:RegisterEvent(subfunct_two)
end
RegisterUnitEvent(1000,1,"example_funct")

(so could someone tell me what i really need to do ? im kinda noob at lua)

Last edited by Arugos; 03-01-2008 at 01:56 PM..
Reply With Quote
(#15)
Old
Arugos's Avatar
Arugos is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 14
Arugos is on a distinguished road
 
Posts: 242
Join Date: Jun 2007
03-01-2008

btw after a few chances here is what my script now look like but its still not working btw ,i get an error at line 22


function Onyxia_Firenova(pUnit)
pUnit:CastSpell(37371)
end
function Onyxia_Coneoffire(pUnit)
pUnit:CastSpell(36876)
end
function Onyxia_Fieryblast(pUnit)
pUnit:CastSpell(38382)
end
function Onyxia_Thickskin(pUnit)
pUnit:CastSpell(43823)
end
function Onyxia_Burningwish(pUnit)
pUnit:CastSpell(18789)
end
function Onyxia_Burningrage(pUnit)
pUnit:CastSpell(38771)
end
function Onyxia_OnCombat(pUnit, Event)
pUnit:SendChatMessage (11, 0, "You killed me once,now i am back and i wont let it happen again!")
end
function Onyxia_OnKill(pUnit, event)
Killchoice=math.random()
if Killchoice > .5 then
pUnit:SendChatMessage(12,0,"Burn!!")
else
pUnit:SendChatMessage(12,0,"You gonna fail!")
end
function Onyxia_OnDied(pUnit)
pUnit:SendChatMessage(12,0,"No....not again!!!")
pUnit:RemoveEvents()
end
function Onyxia_OnLeaveCombat(pUnit)
pUnit:SendChatMessage(12,0,"I will be waiting...!")
pUnit:RemoveEvents()
end
pUnit:RegisterEvent("Onyxia_Firenova",50000, 0)
pUnit:RegisterEvent("Onyxia_Coneoffire",30000, 0)
pUnit:RegisterEvent("Onyxia_Fieryblast",25000, 0)
pUnit:RegisterEvent("Onyxia_Thickskin",500, 0)
pUnit:RegisterEvent("Onyxia_Burningwish",40000, 0)
pUnit:RegisterEvent("Onyxia_Burningrage",25000, 0)
RegisterUnitEvent(111112, 1,"Onyxia_OnCombat")
RegisterUnitEvent(111112, 3,"Onyxia_OnKill")
RegisterUnitEvent(111112, 4,"Onyxia_OnDied")
RegisterUnitEvent(111112, 2,"Onyxia_OnLeaveCombat")
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361