Anti-Crime GM skill?

Welcome in the osRose emulator Project.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Anti-Crime GM skill?

Postby Bless on Tue Jul 30, 2013 12:27 pm

There's this skill that doesn't work on players, it kills mobs though from a distance but I want it to kill people. the skill description says that it kills characters but it doesn't.

Is there a way to edit it?
Bless
Pomic
Pomic
 
Posts: 83
Joined: Wed Oct 13, 2010 9:44 pm

Re: Anti-Crime GM skill?

Postby blahplok on Tue Jul 30, 2013 4:07 pm

you can change skill power on stb higher than player maxhp;
or you can add a code at battle.cpp on useatkskill something like:
  1.  
  2. if(skill->id==3126) //look at list_skill.stb a skill id of this skill
  3. {
  4. skillpower=Enemy->Stats->MaxHP+100000;
  5. Enemy->Stats->HP -=  (long long) skillpower;
  6. }
  7.  
  8.  

you can add this before
  1.    if (Enemy->Status->Sleep != 0xff)
  2.     {
  3.         Enemy->MagicStatus[Enemy->Status->Sleep].Duration = 0;
  4.     }
  5.  
Dev rev4 testing home.... http://www.dinastyonline.uk.to
90% done, waiting to fix buff disappear after pakdoid... :(
blahplok
Jelly Bean
Jelly Bean
 
Posts: 21
Joined: Fri Jul 10, 2009 4:46 pm

Re: Anti-Crime GM skill?

Postby Bless on Wed Jul 31, 2013 5:47 pm

blahplok wrote:you can change skill power on stb higher than player maxhp;
or you can add a code at battle.cpp on useatkskill something like:
  1.  
  2. if(skill->id==3126) //look at list_skill.stb a skill id of this skill
  3. {
  4. skillpower=Enemy->Stats->MaxHP+100000;
  5. Enemy->Stats->HP -=  (long long) skillpower;
  6. }
  7.  
  8.  

you can add this before
  1.    if (Enemy->Status->Sleep != 0xff)
  2.     {
  3.         Enemy->MagicStatus[Enemy->Status->Sleep].Duration = 0;
  4.     }
  5.  


I tried to edit from the STB, i changed the dmg to 99999 after that I saved and I replaced the STB, that didn't seem to work.
Now when I try to compile it after i added in battle.cpp it says "eerror: expected unqualified-id before "if""
Bless
Pomic
Pomic
 
Posts: 83
Joined: Wed Oct 13, 2010 9:44 pm

Re: Anti-Crime GM skill?

Postby PurpleYouko on Wed Jul 31, 2013 8:44 pm

I tried to edit from the STB, i changed the dmg to 99999 after that I saved and I replaced the STB, that didn't seem to work.
Now when I try to compile it after i added in battle.cpp it says "eerror: expected unqualified-id before "

No it wouldn't work putting that kind of number into the STB
The STB values are stored in integers which means their maximum value is 32767. If you go any higher than that you will trip the sign bit and make some negative number

Could you post the code from your battle.cpp please.
Include the lines immediately before the bit you added.
It sounds like you might be missing a semi-colon or something
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Anti-Crime GM skill?

Postby Bless on Wed Jul 31, 2013 9:36 pm

PurpleYouko wrote:
I tried to edit from the STB, i changed the dmg to 99999 after that I saved and I replaced the STB, that didn't seem to work.
Now when I try to compile it after i added in battle.cpp it says "eerror: expected unqualified-id before "

No it wouldn't work putting that kind of number into the STB
The STB values are stored in integers which means their maximum value is 32767. If you go any higher than that you will trip the sign bit and make some negative number

Could you post the code from your battle.cpp please.
Include the lines immediately before the bit you added.
It sounds like you might be missing a semi-colon or something


I'm not good with editing stuff like battle.cpp so I'll try to edit the STB until this works.
Ok so I edited the damage to 30000 and it still doesn't work it always does a miss (I deleted the previous STB before i added the new one)
P.S. I deleted the list_skill.STB and the game still worked, hows that? (I was just curious)
It looks like the server ignores my editing.
And, it seems like this skill kills mobs too, and I hit 10K only.
Bless
Pomic
Pomic
 
Posts: 83
Joined: Wed Oct 13, 2010 9:44 pm

Re: Anti-Crime GM skill?

Postby PurpleYouko on Thu Aug 01, 2013 1:49 pm

Remember there are 2 copies of all the STBs.
Did you edit the STB in the server or the one in the client?
Ideally you need to edit both so as to keep them the same but for skill damage you really only need to do the one in the server since all damage calculations are done from there.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Anti-Crime GM skill?

Postby Bless on Thu Aug 01, 2013 4:03 pm

PurpleYouko wrote:Remember there are 2 copies of all the STBs.
Did you edit the STB in the server or the one in the client?
Ideally you need to edit both so as to keep them the same but for skill damage you really only need to do the one in the server since all damage calculations are done from there.


That was my problem. I completely forgot about the STB in my server files, thanks PY!
P.S. I set the damage to 30000 but I hit much less then that.
And one last question, if I wanna add new items into my server do I need to edit both STBs? from the server and client?
Bless
Pomic
Pomic
 
Posts: 83
Joined: Wed Oct 13, 2010 9:44 pm

Re: Anti-Crime GM skill?

Postby PurpleYouko on Fri Aug 02, 2013 2:53 pm

You need to edit STBs and SOOOOOOO much more.

STB is just the list of statistics that your item has.
You also need to edit ....
STL (Item descriptions)
ZSC (Ties together the new item id with the model mesh ZMS and skin DDS. Also attaches an EFT effect file to some items)
NOTE: The ZSC row must be the same as the STB row. For example if you add an item at position 637 in the STB you need to also add it at position 637 in the ZSC
You also need to physically add the models and possibly any effects that go with them.
ZMS (Mesh files to build the structure of the item)
DDS (Direct Draw Surface. This is a skin that is positioned over the mesh to make the object)
EFT (Effect file. Adds a glow or some other effect. Think gems in a weapon for an example)

You might possibly also need to edit LIST_FIELDITEM.STB if your new item doesn't re-use an existing ground object. If there is a new ground object then you need to add its ZMS / DDS / EFT. There's probably a ZSC somewhere for this too but I have no idea where it is right now since I've never really thought about looking for it before.

There are tutorials for adding items. Just use the search function
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Anti-Crime GM skill?

Postby Bless on Fri Aug 02, 2013 4:05 pm

PurpleYouko wrote:You need to edit STBs and SOOOOOOO much more.

STB is just the list of statistics that your item has.
You also need to edit ....
STL (Item descriptions)
ZSC (Ties together the new item id with the model mesh ZMS and skin DDS. Also attaches an EFT effect file to some items)
NOTE: The ZSC row must be the same as the STB row. For example if you add an item at position 637 in the STB you need to also add it at position 637 in the ZSC
You also need to physically add the models and possibly any effects that go with them.
ZMS (Mesh files to build the structure of the item)
DDS (Direct Draw Surface. This is a skin that is positioned over the mesh to make the object)
EFT (Effect file. Adds a glow or some other effect. Think gems in a weapon for an example)

You might possibly also need to edit LIST_FIELDITEM.STB if your new item doesn't re-use an existing ground object. If there is a new ground object then you need to add its ZMS / DDS / EFT. There's probably a ZSC somewhere for this too but I have no idea where it is right now since I've never really thought about looking for it before.

There are tutorials for adding items. Just use the search function


I know I just wanted to know if I have to edit both STBs cause maybe that's the reason that my new items never show up and work.. because I didnt edit both STBs and only the one thats in the client lol.
Bless
Pomic
Pomic
 
Posts: 83
Joined: Wed Oct 13, 2010 9:44 pm

Re: Anti-Crime GM skill?

Postby PurpleYouko on Fri Aug 02, 2013 9:38 pm

Yup you need to do both.
If you only edit the client side then your server won't know the item exists so it will not allow it to show.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Next

Return to Support - OsRose Emulator

Who is online

Users browsing this forum: No registered users and 10 guests

cron