Forum

> > CS2D > Scripts > tibia doesnt work normally
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch tibia doesnt work normally

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt tibia doesnt work normally

DimAn01s
User Off Offline

Zitieren
With new version (0.1.2.7) rpg tibia doesn't work normally.
Player can't spawn in spawnplace, but can spawn in that place where he was killed. Also it increases characteristics.
LUA Error: sys/lua/cs2dtibia/hooks.lua:402 attempt to index field '?' (a nil value)
->sys/lua/cs2dtibia/hooks:402 in function (sys/lua/cs2dtibia/hooks.lua:401)
-> [C]: in function 'parse'
-> sys/lua/cs2dtibia/hooks.lua:380: in function 'EXPhit'
-> sys/lua/cs2dtibia/monsters.lua:490: in function 'hit'
-> sys/lua/cs2dtibia/monsters.lua:389: in function (sys/lua/cs2dtibia/monsters.lua:347)
-> in lua hook 'die', params: 0, 1, 250, 2678, 2400
Hooks:
Spoiler >

Sorry for my bad english.
Please help!

alt Re: tibia doesnt work normally

VADemon
User Off Offline

Zitieren
For every die-hook you are using, you must apply the following change:
Add the code below right after the line with "function NAME(victim, killer, ...etc)"
1
2
3
4
if game("version")=="b 0.1.2.7" then
victim, killer = killer, victim -- make sure that the names are the same as the first two arguments from the line with function die(firstArg, secondArg)
-- where first arg should be "victim" and the second one is "killer"
end

Background: the die-hook function arguments are wrong for version 0.1.2.7. The code above takes care of checking the bugged version and applies the patch only when needed. It just swaps the argument values, nothing complicated.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht