• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] seems my scripts dont works

Status
Not open for further replies.

Shaorin

Respected Member
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:

First_Login_and_Levelup_Mail
http://pastebin.com/ry6E3rzH

spell_on_levelup
http://pastebin.com/7FFvehK4

world_chat
http://pastebin.com/LyHRy2Hd

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

Weapon_visuals
http://pastebin.com/euDEehVR

say_player_kill_boss
http://pastebin.com/qNmdAxYE

Killstreak_System
http://pastebin.com/3XbYViJN

and here is how it looks:
console
c525aef23e.png

killed bosses in deadmine had GMON and tryd chat
ffa255fb0c.jpg

new made character
5f9e932bea.jpg

.levelup 9
abba7705bc.jpg

in spellbook at level 10
ac8f52f856.jpg


only errors i get:

Code:
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
 
Last edited:

Shaorin

Respected Member
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?
 

Rochet2

Moderator / Eluna Dev
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 ?
 

Shaorin

Respected Member
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
 

Shaorin

Respected Member
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.
 

Unknown96

Exalted Member
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.
 

Shaorin

Respected Member
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.
 

Unknown96

Exalted Member
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?
 

Shaorin

Respected Member
i will look

- - - Updated - - -

hmmm the start not working.

a5b3f9178d.jpg


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

3d8c698135.jpg


but no mail

9af44e66c4.jpg


but its osmething atleast

- - - Updated - - -

will try with english name now repot back in 2 min

- - - Updated - - -

look the same

f419d89696.jpg
 

Shaorin

Respected Member
not sure what i ahve done but it seems they works, and thats good.

ed5a40eb28.jpg


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?
 
Status
Not open for further replies.
Top