EOSERV Forum > EOSERV > insoms rev
Topic is locked.
Page: << 1 2 ... 7 8 9 10 11 ... 14 15 >>
insoms rev
Author Message
Post #71479 Re: insoms rev

Lulwut my post went suicide.

 ok heres what i said look for this in item.cpp ;0

if(id == 701)

{


this->player->character->Save(); //this may be unnessasary

this->player->character->AddItem(id, 1);//adds back the item after it's use

this->player->character->Save();



if(!this->player->character->has_pet)

{


unsigned char index = this->player->character->map->GenerateNPCIndex();

if (index > 250)


{


break;


}


  this->player->character->pet = new NPC(this->player->character->map, 359, this->player->character->x,this->player->character->y, 1, 1, index, true, true);

this->player->character->pet->Spawn();

this->player->character->pet->SetOwner(this->player->character);

this->player->character->has_pet = true;

//this->player->character->AddItem(682, 1);

this->player->character->map->npcs.push_back(this->player->character->pet);

this->player->character->str += 5000;

this->player->character->con += 5000;

                 this->player->character->CalculateStats();


                this->player->character->StatSkill();

this->player->character->Save();


}


else if(this->player->character->has_pet == true)

{

UTIL_PTR_LIST_FOREACH(this->player->character->map->characters, Character, character)

{

if (this->player->character->InRange(*character))

{

this->player->character->pet->RemoveFromView(*character);

}

}

erase_first(this->player->character->map->npcs, this->player->character->pet);

this->player->character->pet->Release();

this->player->character->has_pet = false;

this->player->character->con -= 5000;

this->player->character->str -= 5000;

                this->player->character->CalculateStats();

                this->player->character->StatSkill();

}

its iN item.cpp.

ok first edit the bolded parts 

the 701 is the item id that spawNS THE PET> Make sure that the item that spawns it is a potion!!


the 359 is the npc id and make sure that u have it edited to the npc type 3(eosep pet) in your pub

---
stay tuned.
14 years, 5 weeks ago
Post #71482 Re: insoms rev
Soulbanisher posted: (31st Mar 2011 07:36 pm)

Whitewolf posted: (31st Mar 2011 05:53 pm)

Soulbanisher posted: (31st Mar 2011 01:59 pm)

Ok, I got the last error fixed (thanks whitewolf :D). Now I'm just having a problem creating a character. The server will crash.


This is in the error log.


[WRN] Configuration file not found: ./data/fish.ini

[ERR] Could not load file: ./data/quests/00008.eqf
[ERR] Could not load file: ./data/quests/00010.eqf
[ERR] Could not load file: ./data/quests/00011.eqf
[ERR] Could not load file: ./data/quests/00012.eqf
[ERR] Could not load file: ./data/quests/00014.eqf
[ERR] Could not load file: ./data/quests/00015.eqf
[ERR] Could not load file: ./data/quests/00016.eqf
[ERR] Could not load file: ./data/quests/00017.eqf
[ERR] Could not load file: ./data/quests/00018.eqf
[ERR] Could not load file: ./data/quests/00019.eqf
[ERR] Could not load file: ./data/quests/00020.eqf
[ERR] Could not load file: ./data/quests/00021.eqf
[ERR] Could not load file: ./data/quests/00024.eqf
[ERR] Could not load file: ./data/quests/00025.eqf
[ERR] EOSERV is dying! Segmentation fault

Did you install the database using heidiSQL or Sqlyog? A page or so back I wrote a decent guide on how to set up the database. Try that and let me know.


I followed the steps, and it's working perfect now :D Ty again.

I just wish he removed all the endless-nights advertisements. But I guess that's just a small price to pay for using his build xD

How do I remove the random server message that says to get endless-nights latest client?
And how do I get a pet? :o
I'll compile a binary with the server message changed to Don't forget to #save and the message with the latest client information is in message.txt or message.ini I forget. I'll link the binary In a little bit.
Ok here is a binary version of Insomnia's Release that doesn't advertise E.N. I added Wolfbot instead of Modbot for my own added flavor. :) Also I changed the gold requirement of warping from 1000g to 10g. Enjoy.

14 years, 5 weeks ago
Post #71492 Re: insoms rev

Dude, you're (expletive deleted) awesome :D!

You should come over and teach me how to use these commands. If you know what I mean.

14 years, 5 weeks ago
Post #71498 Re: insoms rev
Soulbanisher posted: (31st Mar 2011 09:39 pm)

Dude, you're (expletive deleted) awesome :D!

You should come over and teach me how to use these commands. If you know what I mean.


Eh, it was just a simple mod to source code, all credits go to Insomniac still. He basically taught me by helping me in the forums how to understand his release's code and EpicDuf for their guide on how to compile which helped although more was needed to be able to compile Insomniac's release. But you're welcome none the less.
14 years, 5 weeks ago
Post #71499 Re: insoms rev

Thank you very much insomniac. And thank you Whitewolf for helping me set it up.


14 years, 5 weeks ago
Post #71504 Re: insoms rev

I have another question. How do you make an item into a fishing pole? Also how do I find all the code for #warps in the source. I tried a search and found nothing. :(

Edit: Also my lvl 2 admin's wings don't show up on the who's online list and the monsters seem to die really easy even though nothing has changed in the pub.

14 years, 5 weeks ago
Post #71505 Re: insoms rev

I got 1 problem. It let me warp 1 time, and now I can't warp anymore. All the other commands work so far.

14 years, 5 weeks ago
Post #71506 Re: insoms rev
Soulbanisher posted: (31st Mar 2011 10:45 pm)

I got 1 problem. It let me warp 1 time, and now I can't warp anymore. All the other commands work so far.


Make sure you spawn yourself alot of gold. xD #si 1 100000000
14 years, 5 weeks ago
Post #71507 Re: insoms rev

 How come the rat in my pub file is set to 0 damage, but he hits like 20's

14 years, 5 weeks ago
Post #71512 Re: insoms rev
Soulbanisher posted: (31st Mar 2011 10:53 pm)

 How come the rat in my pub file is set to 0 damage, but he hits like 20's


If you're using Insomniac's pubs then your monster will have the stats from Endless Nights. You'll have to find different pubs or just change his to meet your needs.
14 years, 5 weeks ago
Post #71514 Re: insoms rev

I'm using my own pub. The rats name is Rat Lvl 1

14 years, 5 weeks ago
Post #71538 Re: insoms rev
Soulbanisher posted: (31st Mar 2011 10:53 pm)

 How come the rat in my pub file is set to 0 damage, but he hits like 20's

Im not 100% but I think when i released it the mobrate was set to 20k in the config.ini and config local.ini
Set to 0 to just read from the .ini's?

14 years, 5 weeks ago
Post #71577 Re: insoms rev

I set the mobrate to 0 percent in config, and config.local. The rats still aren't hitting what I want them to hit. And they hit too fast. How do I get them to be what I set them in the pub?

14 years, 5 weeks ago
Post #71593 Re: insoms rev

If you put your rats there with the map editor make sure to set them to type 3. If the strength of your npcs are too low try setting the mob strength to 175% in the config files. I noticed that the npcs die real easy on this release which I'm trying to figure out why myself.

14 years, 5 weeks ago
Post #71594 Re: insoms rev

Well, I fixed my npcs HP by adding a 0 to the value. Example rat has 10 hp, set to 100 for 10 hp.

So, if i set the npc as type 3, it will abide by my set rules in pub?


Edit: nvm, i just tested the hp, its not 10 hp when you set it to 100 xD but close

sorry :(

if you figure it out, let me know.


Another edit: How do I change where you spawn when you die? I have wanderer and new player spawn in a certain spot, but when you die, you just go to map1 x1 y1. Also, players' home doesn't say wanderer.

14 years, 5 weeks ago
Page: << 1 2 ... 7 8 9 10 11 ... 14 15 >>
Topic is locked.
EOSERV Forum > EOSERV > insoms rev