ID:261780
Jun 16 2003, 5:35 am
|
|
Del() global.counter -= 1 // world << "[src] logs out."//tell the world the client logged out src << "Thanks for playing [world.name]"// give the player a thank you message ..()//perform all the default code for client/del() base_num_characters_allowed = 6 // show_verb_panel = 0 Northeast() Northwest() Southeast() Southwest() == > world mob = /mob/creating_character view = 6 < == mob Login() ..() AddGMVerbs() addguildverbs() addoverworldverbs() src.oldbattlefield = 0 src.onbattlefield = 1 src.inpvp = 0 /* if(src.logoutinbattle == 1) src.lostgold += src.gold src.lostgold += src.bankgold src.gold = 0 src.bankgold = 0 src.logoutinbattle = 0 src.onbattlefield = 1 src.oldbattlefield = 0 src.numlogoutinbattle += 1*/ world << "[src] logs in." // tell the world the client logged in src._GM_lockmove = 0 // src.verbs -= PVP() Read(savefile/F) // Call the default Read() behavior for mobs. ..() // Now, if we have a map, put them back on the map in their last location. if (world.maxx) var/last_x var/last_y var/last_z if(usr.preslocation == "jail") return ..() else usr.preslocation = "town" F["last_x"] >> last_x F["last_y"] >> last_y F["last_z"] >> last_z F["last_x"] >> usr.savex F["last_y"] >> usr.savey F["last_z"] >> usr.savez // usr._GM_lockmove = 0 // usr.Move(locate(last_x, last_y, last_z)) usr.density = 0 usr.Move(locate(usr.savex,usr.savey,usr.savez)) usr.density = 1 usr.invisibility = 0 Write(savefile/F) // This is sample code that keeps track of the player's last position on the map. // Their last position is stored when the mob is saved, then reinstated when the mob // is read in. // First, call the default Write() behavior for mobs. ..() // Now, if we have a map, remember their last location. if (world.maxx) F["last_x"] << usr.savex F["last_y"] << usr.savey F["last_z"] << usr.savez Logout() if(src.class == null) return ..() else world << "[src.name] logs out."//tell the world the client logged out ..() ------------------------------------------------------------ okay my problem is up there with the arrows i added them to show u were it was or else you'd be forever clueless.. now anyways.. when i compile it comes up with Dragon Warrior Adventure.dm:28:error:/mob/creating_character:undefined type path and thats what puzzles me.... er please help, thank you |
world
mob = /mob/creating_character //This hasn't been defined yet, view = 6 < == mob creating_character //So define it here. Login() ..() AddGMVerbs() addguildverbs() |
In response to Piccolo-zt
|
|
His indentation wasn't wrong; he put in the ====> arrow before the line to show where the problem was, is all--but you'll notice it started at the correct indentation.
Lummox JR |
world
mob = /mob/creating_character
view = 6
This should fix your problem... I hope this helps