flrp Posted July 9, 2010 Author Share Posted July 9, 2010 hi guys im getting a problem ;C.All the time a player die in the client,the server gets bugged. And then the hp, monsters, money,npcsand etc ingame get bugged too.All the time a player die, the server application get this bug:![](http://img94.imageshack.us/img94/5987/subscripterror.png)what should i do to fix O___o.(i already tried redownload ) Link to comment Share on other sites More sharing options...
lorin Posted July 9, 2010 Share Posted July 9, 2010 I had this problem when I edited file Main.essL. Link to comment Share on other sites More sharing options...
SawQuart Posted July 9, 2010 Share Posted July 9, 2010 Post line 10 of your Main. Link to comment Share on other sites More sharing options...
flrp Posted July 9, 2010 Author Share Posted July 9, 2010 @נÅøgâ„“Ñâ€Ã‘‚ÃĄâ€:> Post line 10 of your Main.Main.ess file:'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Module: Main.ess '' Author: Stephan J.R. van Schaik '' Date: August 30th, 2009. '' Version: 1.0.0 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Constants & Globals' Color ConstantsPublic Const BLACK = 0Public Const BLUE = 1Public Const GREEN = 2Public Const CYAN = 3Public Const RED = 4Public Const MAGENTA = 5Public Const BROWN = 6Public Const GREY = 7Public Const DARKGREY = 8Public Const BRIGHTBLUE = 9Public Const BRIGHTGREEN = 10Public Const BRIGHTCYAN = 11Public Const BRIGHTRED = 12Public Const PINK = 13Public Const YELLOW = 14Public Const WHITE = 15' Admin ConstantsPublic Const ADMIN_PLAYER = 0Public Const ADMIN_MONITOR = 1Public Const ADMIN_MAPPER = 2Public Const ADMIN_DEVELOPER = 3Public Const ADMIN_CREATOR = 4Public Const ADMIN_OWNER = 5' Alignment constantsPublic Const LEFT = 0Public Const RIGHT = 1Public Const CENTER = 2' Stat constantsPublic Const STAT_STRENGHT = 0Public Const STAT_DEFENCE = 1Public Const STAT_MAGIC = 2Public Const STAT_SPEED = 3' Key constantsPublic Const KEY_PAGEUP = 1Public Const KEY_PAGEDOWN = 4Public Const KEY_DELETE = 2Public Const KEY_END = 3' Element type constantsPublic Const ELEMENT_PICTURE = 1Public Const ELEMENT_FIELD = 2Public Const ELEMENT_LABEL = 3' Tile type constantsPublic Const TILE_TYPE_WALKABLE = 0Public Const TILE_TYPE_BLOCKED = 1Public Const TILE_TYPE_WARP = 2Public Const TILE_TYPE_ITEM = 3Public Const TILE_TYPE_NPCAVOID = 4Public Const TILE_TYPE_KEY = 5Public Const TILE_TYPE_KEYOPEN = 6Public Const TILE_TYPE_HEAL = 7Public Const TILE_TYPE_KILL = 8Public Const TILE_TYPE_SHOP = 9Public Const TILE_TYPE_CBLOCK = 10Public Const TILE_TYPE_ARENA = 11Public Const TILE_TYPE_SOUND = 12Public Const TILE_TYPE_SPRITE_CHANGE = 13Public Const TILE_TYPE_SIGN = 14Public Const TILE_TYPE_DOOR = 15Public Const TILE_TYPE_NOTICE = 16Public Const TILE_TYPE_CHEST = 17Public Const TILE_TYPE_CLASS_CHANGE = 18Public Const TILE_TYPE_SCRIPTED = 19'Public Const TILE_TYPE_NPC_SPAWN = 20Public Const TILE_TYPE_HOUSE = 21'Public Const TILE_TYPE_CANON = 22Public Const TILE_TYPE_BANK = 23'Public Const TILE_TYPE_SKILL = 24Public Const TILE_TYPE_GUILDBLOCK = 25Public Const TILE_TYPE_HOOKSHOT = 26Public Const TILE_TYPE_WALKTHRU = 27Public Const TILE_TYPE_ROOF = 28Public Const TILE_TYPE_ROOFBLOCK = 29Public Const TILE_TYPE_ONCLICK = 30Public Const TILE_TYPE_LOWER_STAT = 31' Data.ini (config) settings.Public GameNamePublic WebSitePublic PortPublic HPRegenPublic HPTimerPublic MPRegenPublic MPTimerPublic SPRegenPublic SPTimerPublic NPCRegenPublic ScrollingPublic ScrollXPublic ScrollYPublic ScriptingPublic ScriptErrorsPublic PaperDollPublic SaveTimePublic SpriteSizePublic CustomPublic PKMinLvlPublic LevelPublic EmailPublic VerifyAccPublic ClassesPublic Stat1Public Stat2Public Stat3Public Stat4Public SPAttackPublic SPRunning' Data.ini (max) settings.Public MAX_PLAYERSPublic MAX_ITEMSPublic MAX_NPCSPublic MAX_SHOPSPublic MAX_SPELLSPublic MAX_MAPSPublic MAX_MAP_ITEMSPublic MAX_GUILDSPublic MAX_GUILD_MEMBERSPublic MAX_EMOTICONSPublic MAX_ELEMENTSPublic MAX_LEVELPublic MAX_PARTY_MEMBERSPublic MAX_SCRIPTSPELLSPublic MAX_MAP_XPublic MAX_MAP_YPublic MAX_STAT' MOTDPublic MOTD' Events' Initialisation & Reloading#include #include #include ' Interactivity#include #include #include #include #include #include ' Joining & Leaving#include #include #include ' Death#include #include #include #include #include ' Attacks#include #include #include ' Scripted#include #include #include #include ' Leveling#include #include ' Misc#include #include #include ' Modules#include #include #include ' Functions' General#include #include ' For testing the script.#include Link to comment Share on other sites More sharing options...
Robin Posted July 9, 2010 Share Posted July 9, 2010 **Line no. 10.**Not the entire bloody thing. >_> Link to comment Share on other sites More sharing options...
flrp Posted July 9, 2010 Author Share Posted July 9, 2010 @Robin:> **Line no. 10.**> > Not the entire bloody thing. >_>Public Const BLACK = 0>.> Link to comment Share on other sites More sharing options...
Ruins of Hell Posted July 9, 2010 Share Posted July 9, 2010 :|Seriously.Now, post your OnDeath.ess for me. Link to comment Share on other sites More sharing options...
flrp Posted July 9, 2010 Author Share Posted July 9, 2010 @Soul:> :|> Seriously.> > Now, post your OnDeath.ess for me.'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Module: OnDeath.ess '' Author: Stephan J.R. van Schaik '' Date: August 30th, 2009. '' Version: 1.0.0 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Function: OnDeath '' Brief: executes when a player dies outside of an arena. '' Parameters: '' Index: the index number of the player who died. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''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 Sub Link to comment Share on other sites More sharing options...
Ruins of Hell Posted July 9, 2010 Share Posted July 9, 2010 As I thought. Replace all Target with Index in Sub OnDeath.ess.Also, try usingaround your code when posting. Link to comment Share on other sites More sharing options...
flrp Posted July 9, 2010 Author Share Posted July 9, 2010 OMG THx a LOT I Love you!!! =D.(it worked ;) 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