Openkore.com

OpenKore Forums
It is currently 29 Jun 2017, 06:38

All times are UTC - 5 hours [ DST ]





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Openkore is not correctly identifying the element (Solving)
PostPosted: 27 Mar 2012, 07:14 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1303
EternalHarvest wrote:
kLabMouse wrote:
How about Converting "Item" to object with properties.
So Custom plugin can add "Top" forgers if necessary.

Most* items are objects already. I suspect a plugin can do that.

But better would be able to specify items not by a only one name, but some template. Like, "any blue potions", "any main gauches" etc.

* Not in cart, storage, maybe other random places.


Oh.. Getting out of Topic.

I think that "Item" should some Container, that could be overloaded to Display additional data, or apply additional types of Item Match.
Like, a Plugin can implement Regexp Match procedure. Or Add additional info. Or Style Item name like client does.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: Openkore is not correctly identifying the element (Solving)
PostPosted: 27 Mar 2012, 10:37 
Offline
Noob
Noob

Joined: 26 Mar 2012, 09:16
Posts: 2
SkylorD wrote:
I don't understand... My way doesn't works ?


@SkylorD
Your way works perfectly, but I haven't been in this forum for a very long time and I just happen being ask by my friend to help set his bot so I re-register again. I think my old ID is already wipe.
and
I just wanted to share what I do with my code. There's nothing wrong with your code.

Basically the original code only detect the starcrumb from 1 up to 3.
So if there's no starcrumb in it. the elemental also didn't diplay since the code didn't get process.

My idea is no need to display any forger name. It will make the user harder. Not all forger name easy to tell. (eg. fooooooooorrrrggeeerrr)
Some ppl use that kind of name and you have to count how many "o" in it.

Its fine the way it is except the fix that SkylorD mentioned.


Top
 Profile  
 
 Post subject: Re: Openkore is not correctly identifying the element (Solving)
PostPosted: 11 Dec 2013, 09:34 
Offline
Noob
Noob
User avatar

Joined: 30 Jun 2011, 12:25
Posts: 5
Location: Brazil
if u wann know how to get the name:

Code:
if ($slot1 == 255) {
         # Collect the nick of who created the weapon
         $slot3 = unpack("x16 a4 x10", substr($args->{equips_info}, $offset, 28));
         $slot3 = getHex($slot3);
         $messageSender->sendRaw("68 03 $slot3");
         $slot3 = unpack("V1", $slot3);

         # Element of weapon
         $slot2 = $slot2 % 10;
         
         # Enjoy the slot4 to send the force
         $slot4 = ($slot2 >> 8) / 5;
         
      # The organization of the data will be as follows
      #  slot1 -> 255               |   slot3 -> ID with the char
      #  slot2 -> Element of weapon   |   slot4 -> Force weapon
      }

_________________
Image

"Can take everything, just can not take the good things I already did to the one I love."
Charlie Brown Jr.


Top
 Profile  
 
 Post subject: Re: Openkore is not correctly identifying the element (Solving)
PostPosted: 23 Apr 2017, 02:34 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1096
Location: Brazil - DF
viewtopic.php?f=34&t=1418

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

Click here and travel to a new world -> Newbies
Read before asking something.
How to connect to private servers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group