how can i overwrite normal openkore function ?

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

IGInvisible
Noob
Noob
Posts: 5
Joined: 28 Apr 2009, 03:01
Noob?: No

how can i overwrite normal openkore function ?

#1 Post by IGInvisible »

hi,

i will wirte in a plugin a fuction "processEquip();" and alle script in openkore must use this function not anymore the function
in CoreLogic.pm, how can i do this ?
Scarya
Moderators
Moderators
Posts: 136
Joined: 26 May 2008, 12:25
Noob?: No

Re: how can i overwrite normal openkore function ?

#2 Post by Scarya »

Use google and search for "overloading", I'm sure you'll find alot. But why do you need to override this function? Which use will your plugin have?

Btw. are you from the german community "ingamers.de"? (and your english sucks ^^)
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots.
So far, the universe is winning.

Richard Cook

Wiki
IGInvisible
Noob
Noob
Posts: 5
Joined: 28 Apr 2009, 03:01
Noob?: No

Re: how can i overwrite normal openkore function ?

#3 Post by IGInvisible »

Yes , i'm from ingamers, thats the reson why my english so bad :P
kali
OpenKore Monk
OpenKore Monk
Posts: 457
Joined: 04 Apr 2008, 10:10

Re: how can i overwrite normal openkore function ?

#4 Post by kali »

It would sure be great if you can share back what you've been writing :)
Got your topic trashed by a mod?

Trashing topics is one click, and moving a topic to its proper forum is a lot harder. You expend the least effort in deciding where to post, mods expend the least effort by trashing.

Have a nice day.