viciousdead Posted March 21, 2010 Author Share Posted March 21, 2010 It says something about line 10…Tell me what I need to upload for someone to answer this problem.. Link to comment Share on other sites More sharing options...
Draken Posted March 21, 2010 Share Posted March 21, 2010 can you explain moreexamplewhen a npc kills you?when a Player kills you?when you die from a script?Did you mess with ondeath sub?Or post a screen shot Link to comment Share on other sites More sharing options...
westin444 Posted March 21, 2010 Share Posted March 21, 2010 It sounds like an error in the sadscript. OnPlayerDeath() sub?Does the error appear on the client or the server Link to comment Share on other sites More sharing options...
viciousdead Posted March 21, 2010 Author Share Posted March 21, 2010 @Draken:> can you explain more> > example> > when a npc kills you?> when a Player kills you?> when you die from a script?> Did you mess with ondeath sub?> > Or post a screen shotHappens when an NPC or player kills anyone(excluding other npc's).Doesn't matter if you die by a script or not.Didn't mess with OnDeath Sub.Using Stable.Screenshot:![](http://i216.photobucket.com/albums/cc141/silento0o0/untitled-7.jpg) Link to comment Share on other sites More sharing options...
Draken Posted March 21, 2010 Share Posted March 21, 2010 yea thats a script error, your main is messed up.I dont use stable, simply because its not stable LOLFirst check to make sure scripting is onserver/data.iniscripting=1if so then i dont know, like i said I dont use stable i use 2.7 since its the best IMO, had to many issues with 2.8 and stable … Link to comment Share on other sites More sharing options...
westin444 Posted March 21, 2010 Share Posted March 21, 2010 try turning scripting OFF…... then see what happens Link to comment Share on other sites More sharing options...
ENIGMAX Posted March 21, 2010 Share Posted March 21, 2010 easy solution .. stop killing people :) Link to comment Share on other sites More sharing options...
viciousdead Posted March 21, 2010 Author Share Posted March 21, 2010 Sub OnDeath(Index)If GetMapBootMap(Index) > 0 ThenCall PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index))ElseMap = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "Map"))X = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "x"))Y = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "y"))Call PlayerWarp(Index, Map, X, Y)End IfCall SetPlayerHP(Target, GetPlayerMaxHP(Target))Call SetPlayerMP(Target, GetPlayerMaxMP(Target))Call SetPlayerSP(Target, GetPlayerMaxSP(Target))Call SendPlayerData(Target)End SubWhats wrong with this script.. Link to comment Share on other sites More sharing options...
Zop Posted March 21, 2010 Share Posted March 21, 2010 @viciousdead:> Sub OnDeath(Index)> If GetMapBootMap(Index) > 0 Then> Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index))> Else> Map = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "Map"))> X = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "x"))> Y = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "y"))> > Call PlayerWarp(Index, Map, X, Y)> End If> > Call SetPlayerHP(Target, GetPlayerMaxHP(Target))> Call SetPlayerMP(Target, GetPlayerMaxMP(Target))> Call SetPlayerSP(Target, GetPlayerMaxSP(Target))> Call SendPlayerData(Target)> End Sub> > Whats wrong with this script..```Sub OnDeath(Index) If GetMapBootMap(Index) > 0 Then Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index)) Else Map = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "Map")) X = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "x")) Y = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "y")) Call PlayerWarp(Index, Map, X, Y) End If Call SetPlayerHP(Index, GetPlayerMaxHP(Index)) Call SetPlayerMP(Index, GetPlayerMaxMP(Index)) Call SetPlayerSP(Index, GetPlayerMaxSP(Index)) Call SendPlayerData(Index)End Sub```Try that? Link to comment Share on other sites More sharing options...
Draken Posted March 21, 2010 Share Posted March 21, 2010 replace that with```Sub OnDeath(Index) If GetMapBootMap(Index) > 0 Then Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index)) Else Map = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "Map")) X = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "x")) Y = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "y")) Call PlayerWarp(Index, Map, X, Y) End If Call SetPlayerHP(Index, GetPlayerMaxHP(Index)) Call SetPlayerMP(Index, GetPlayerMaxMP(Index)) Call SetPlayerSP(Index, GetPlayerMaxSP(Index)) Call SendPlayerData(Index)End Sub```ERRRG you posted before i did Link to comment Share on other sites More sharing options...
viciousdead Posted March 21, 2010 Author Share Posted March 21, 2010 @Draken:> replace that with> > ```> Sub OnDeath(Index)> If GetMapBootMap(Index) > 0 Then> Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index))> Else> Map = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "Map"))> X = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "x"))> Y = CInt(GetVar("Classes\Class" & GetPlayerClass(Index) & ".ini", "CLASS", "y"))> > Call PlayerWarp(Index, Map, X, Y)> End If> > Call SetPlayerHP(Index, GetPlayerMaxHP(Index))> Call SetPlayerMP(Index, GetPlayerMaxMP(Index))> Call SetPlayerSP(Index, GetPlayerMaxSP(Index))> Call SendPlayerData(Index)> End Sub> > ```> > ERRRG you posted before i didThank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now