View Full Version : [SOLVED] seems my scripts dont works

10-19-2015, 02:56 AM
hi all i run a mangos zero server. ia hve downlaoded some eluna scripts for it. but i get the feeling they dont work as they should.

for example:

this are the ones i have:




is not what i wanted i wanted this one: http://emudevs.com/showthread.php/2265-Eluna-World-chat-icons




and here is how it looks:
killed bosses in deadmine had GMON and tryd chat
new made character
.levelup 9
in spellbook at level 10

only errors i get:

15-10-19 10:41:49 ERROR:Skill not found in SkillLineStore: skill #242
2015-10-19 10:41:49 ERROR:Skill not found in SkillLineStore: skill #242
2015-10-19 10:42:56 ERROR Eluna: lua_scripts/First_Login_and_Levelup_Mail.lua:12: Item entry 55000 does not exist
2015-10-19 10:47:19 ERROR Eluna: lua_scripts/spell_on_levelup.lua:532: attempt to index field '?' (a nil value)
2015-10-19 10:48:02 ERROR Eluna: lua_scripts/spell_on_levelup.lua:520: attempt to index field '?' (a nil value)
item one are for ia hve not imported the datavase SQL that one are fore 3.3.5

10-19-2015, 05:01 AM
Section 1D Rule#16
Recommended paste sites

Use our recommended paste sites (or code tags) to paste all of your script(s) source code. Looks to me like you only need to paste the contents of spell_on_levelup.lua and First_Login_and_Levelup_Mail.lua.

10-19-2015, 05:13 AM
i dont think so the vhat dont works and i get the feeling nothing else does. even if i need to paste the contaent for the mail stuff i should get the msg from first login.... hard to explain.

and there is only 2 spells i should get the other ones like, sinster stke 2 stealth and so on,... can it be that they are diffrent i use zhCH DBC not enUS can it be this that make it so i need to refind all the spells, im not sure?

10-19-2015, 05:22 AM
UPDATED MAIN POST with right linkes sorry my misstake

10-19-2015, 07:09 AM
Do you have enUS or enGB (english) DBC?
Seems the spell learning script cant find your class, which seems to be rogue or something, which could be because the player:GetClassAsString() returns something non english.

For the boss kill script you could try this:
RegisterPlayerEvent(7, print) -- executes when a player kills a creature
RegisterPlayerEvent(33, print) -- executes on each player attack attempt (spammy)
RegisterPlayerEvent(34, print) -- executes when a player leaves combat

then see if the events print to the console. If they do its likely that IsWorldBoss is returning false.

For the chat script did you do #chat on ?

10-19-2015, 11:31 AM
ok i see. well can i go into my class DBC and get all classes and add them to script so it can read it... i will try to the chat thing.
and i will see if i can get the event stuff if i klnow where to put them whit i dont.

- - - Updated - - -

and i'm used not enGB or enUS

and there is only 2 spells i should get the other ones like, sinster stke 2 stealth and so on,... can it be that they are diffrent i use zhCH DBC not enUS can it be this that make it so i need to refind all the spells, im not sure?

can it make a diffrence it i ahve enUS or enGB server side and use other cligent side you mean? i can give it a shoot.... repoting back

10-19-2015, 11:49 AM
ok i did get enUS server side, and then i think i did get the chat to work and levelup spell.

i get spells for both chinese characters and english one and both can write in chat so all working so far.

i have not added the event think yet will do it soon. and welcome msg and mail on level up still not owrking.

10-19-2015, 12:59 PM
For the First_Login_And_Levelup_Mail try changing first_package to a different entry id since it seems like you don't have imported the default SQL files that are used in the script, however I understand why when you are Mangos.

10-19-2015, 01:20 PM
hmm did i do right?

local logo = "TrinityCore"
local package = true
local notify = true
local package_repeat = true
local first_package = 25
local multiplication = 10000

T = {9, 19, 29, 39, 49, 59, 69, 79};

if so i did not work for me.

10-19-2015, 01:23 PM
Yes you did do it right indeed, just make sure that there is a valid item on that entry id that you selected, being 25.
Also this might not help since the mangos eluna methods might be different, I'm not sure. I haven't really looked into the Mangos methods at all.

Did the error message you recieved any different at all?

10-19-2015, 01:38 PM
i will look

- - - Updated - - -

hmmm the start not working.


but when i do .levelup 8 then .levelup i get


but no mail


but its osmething atleast

- - - Updated - - -

will try with english name now repot back in 2 min

- - - Updated - - -

look the same


10-20-2015, 09:11 AM
not sure what i ahve done but it seems they works, and thats good.


are there a way to send diffrent things like. 10 G and a set of gear

but on level 50 i send 100 g and other set of gear.?

this is vanilla so you can only send on thing at the time maybe i need to make them as bag and then im nmot sure how to do it. but can i do it?