EOSERV Forum > EOSERV > lewis999's EOserv rev 189
Topic is locked.
Page: << 1 2 ... 18 19 20 21 22 ... 28 29 >>
lewis999's EOserv rev 189
Author Message
Post #49147 Re: EOserv rev 189 Compiled

Quick question. What goes in the scripts folder? In data.

14 years, 33 weeks ago
Post #49173 Re: EOserv rev 189 Compiled

Well, if you want the short answer, Scripts.

I don't know how the script system works though so you would need to figure it out yourself :P

14 years, 33 weeks ago
Post #49174 Re: EOserv rev 189 Compiled

Well yeah, i guess i didnt ask that very well... Do i put the eoserv trunk scripts in there?

14 years, 33 weeks ago
Post #49175 Re: EOserv rev 189 Compiled
danjakeneal posted: (15th Sep 2010 06:01 am)

Well yeah, i guess i didnt ask that very well... Do i put the eoserv trunk scripts in there?


I haven't got a clue...
14 years, 33 weeks ago
Post #49180 Re: EOserv rev 189 Compiled

Did you try to use the $remap command?

i think it dosnt update the map you currently in..

can you fix it?

14 years, 33 weeks ago
Post #49183 Re: EOserv rev 189 Compiled

use $remap Then $rehash to update server  nothing chages to after u update both in that order lol


add table  mypetid  into your mysle data bass

replace your pettransfer  with this 1 and u can have your pet when u logout and and log back in  ;)


void Character::PetTransfer() {

if(!this->has_pet && this->mypetid > 0) {
this->has_pet = true;
unsigned char index = this->map->GenerateNPCIndex();
if (index > 250) { return; }
this->pet = new NPC(this->map, this->mypetid, this->x, this->y, 1, 1, index, true, true);
this->pet->SetOwner(this);
this->map->npcs.push_back(this->pet);
this->pet->Spawn();
}

if(this->has_pet && !this->pet_transfer) {
this->player->character->pet->RemoveFromView(this->player->character);
this->player->character->pet->Release();
erase_first(this->player->character->pet->map->npcs, this->player->character->pet);
this->has_pet = false;
this->pet_transfer = true; }

if(this->pet_transfer) {
unsigned char index = this->map->GenerateNPCIndex();
if (index > 250) { return; }
this->pet = new NPC(this->map, this->pet->id, this->x, this->y, 1, 1, index, true, true);
this->pet->SetOwner(this);
this->map->npcs.push_back(this->pet);
this->pet->Spawn();
this->has_pet = true;
this->pet_transfer = false; }
}

14 years, 33 weeks ago
Post #49193 Re: EOserv rev 189 Compiled
michael032777 posted: (15th Sep 2010 11:40 am)

use $remap Then $rehash to update server  nothing chages to after u update both in that order lol


add table  mypetid  into your mysle data bass

replace your pettransfer  with this 1 and u can have your pet when u logout and and log back in  ;)


void Character::PetTransfer() {

if(!this->has_pet && this->mypetid > 0) {
this->has_pet = true;
unsigned char index = this->map->GenerateNPCIndex();
if (index > 250) { return; }
this->pet = new NPC(this->map, this->mypetid, this->x, this->y, 1, 1, index, true, true);
this->pet->SetOwner(this);
this->map->npcs.push_back(this->pet);
this->pet->Spawn();
}

if(this->has_pet && !this->pet_transfer) {
this->player->character->pet->RemoveFromView(this->player->character);
this->player->character->pet->Release();
erase_first(this->player->character->pet->map->npcs, this->player->character->pet);
this->has_pet = false;
this->pet_transfer = true; }

if(this->pet_transfer) {
unsigned char index = this->map->GenerateNPCIndex();
if (index > 250) { return; }
this->pet = new NPC(this->map, this->pet->id, this->x, this->y, 1, 1, index, true, true);
this->pet->SetOwner(this);
this->map->npcs.push_back(this->pet);
this->pet->Spawn();
this->has_pet = true;
this->pet_transfer = false; }
}

add this to world.cpp
this->mypetid = GetRow<int>(row, "mypetid");

and this to world.hpp
int mypetid;

Then it works perfectly :D
thanks for this, I have been trying to do this for a while now.
It'll be in v1.1 :)

14 years, 33 weeks ago
Post #49196 Re: EOserv rev 189 Compiled

oops ya i forgot to add that to topic lol ty

ya does took me al night to work it out

only prob i know of is that still need get attack to work and if u leave an pet idle for while  server crashes dont no why yet only happens when more then 1 loged in



14 years, 33 weeks ago
Post #49198 Re: EOserv rev 189 Compiled
michael032777 posted: (15th Sep 2010 04:08 pm)

oops ya i forgot to add that to topic lol ty

ya does took me al night to work it out

only prob i know of is that still need get attack to work and if u leave an pet idle for while  server crashes dont no why yet only happens when more then 1 loged in


edit:

add this to welcome.cpp to spawn the pet as soon as you log in

edit2: nvm, i can't get this to work


14 years, 33 weeks ago
Post #49216 Re: EOserv rev 189 Compiled

How do i open the .eqf file?

EDIT: Nevermind, i didnt think of notepad -_-

14 years, 33 weeks ago
Post #49223 Re: EOserv rev 189 Compiled

when u log in and u have a pet already  when u walk in door or warp u pet apears

if u wantg to to apear on login just add the PetTransfer(); call to the login like it is with warps


14 years, 33 weeks ago
Post #49254 Re: EOserv rev 189 Compiled
michael032777 posted: (15th Sep 2010 09:34 pm)

when u log in and u have a pet already  when u walk in door or warp u pet apears

if u wantg to to apear on login just add the PetTransfer(); call to the login like it is with warps


Thank you :)
I can't believe I didn't think of that, i'll try it now and edit this post when i'm done. 

edit:
nope, still isn't working

14 years, 33 weeks ago
Post #49255 Re: EOserv rev 189 Compiled

hate when code gets corrupt had replace some lol
i got it working now i have 1 prob with quest when u do quest and end of it the reset dont work
Heres my wise man code it works ;) took while to get it working right

Note when u makeing quests put 2 ;; not 1 it seems only 1   alot times it stops from working ;) i updated this for ya


Main {
questname    "WiseMan"
version     1.0
}
State Begin {
desc "Talk To The Wise Man"
action AddNpcText(4,"Ahhh A New Visitor. Well Every One Comes To Me To Get Started.");;
rule TalkedToNpc(4) goto Wiseman
}
State Wiseman {
desc "Choose A Class"
action AddNpcText(4,"What Class Do You Desire To Become?");;
action AddNpcInput(4,2,"Priest");;
action AddNpcInput(4,3,"Magician");;
action AddNpcInput(4,4,"Rogue");;
action AddNpcInput(4,5,"Archer");;
action AddNpcInput(4,6,"Warrior");;

rule InputNpc(2) goto Priest
rule InputNpc(3) goto Magician
rule InputNpc(4) goto Rogue
rule InputNpc(5) goto Archer
rule InputNpc(6) goto Warrior
}
State Priest {
action SetClass(2);;
action Reset();;
action SetState("Wiseman");;
}
State Magician {
action SetClass(3);;
action Reset();;
action SetState("Wiseman");;
}
State Rogue {
action SetClass(4);;
action Reset();;
action SetState("Wiseman");;
}
State Archer {
action SetClass(5);;
action Reset();;
action SetState("Wiseman");;
}
State Warrior {
action SetClass(6);;
action Reset();;
action SetState("Wiseman");;
}
State Finish {
action Reset();;
}


14 years, 33 weeks ago
Post #49357 Re: EOserv rev 189 Compiled

heres the warp.ini a little more filled up then yours :)

http://www.mediafire.com/?mjzn1wzjqhg



14 years, 33 weeks ago
Post #49422 Re: EOserv rev 189 Compiled

a question
i tried to drop a lore item
it seems that the commands doesnt work
anybody els got it to work ?
or im a doing something wrong ?


14 years, 33 weeks ago
Page: << 1 2 ... 18 19 20 21 22 ... 28 29 >>
Topic is locked.
EOSERV Forum > EOSERV > lewis999's EOserv rev 189