Jump to content

Recommended Posts

Posted (edited)

every char on server can use res commande every 1 minute ( by default )

 

http://pastebin.com/5N8Ucu6n

 

 

system/commandname-e.dat

115	114	a,resurrection\0 

credits SweeTs for create 50% of code and me for next 50%

Edited by pirama
  • Upvote 1
Posted

Just lol

now no have bug with restart player or restart client and have only 1 stable Thread 

Posted (edited)

My code never had any problem.

yes have .if every one player close client and open it again can use commande again :)

Edited by pirama
Posted

The static class gave me cancer...Use task manager in acis, the "else" isn't really needed but it's not going to cause problems either...

Posted (edited)

The static class gave me cancer...Use task manager in acis, the "else" isn't really needed but it's not going to cause problems either...

yes you're right again as we said in the elfo on another Topic

 

and for that i change the base code . and drop Thread for dont run all time 

i think dont need Thread for clean size : if map size is 1000 = 1000 player ( for use commande is not eazy ) = 1000 integer and 1000 long number .. this size i think is not large

 

ty for comment :P

Edited by pirama
Posted

I see 2 better ways:

  • use player.getMemo() to store/retrieve info about the time
  • change it to be usable as a item / skill. You set the reuse directly on skill. Obviously small touch @ itemhandler is required.
Posted (edited)

 

I see 2 better ways:

  • use player.getMemo() to store/retrieve info about the time
  • change it to be usable as a item / skill. You set the reuse directly on skill. Obviously small touch @ itemhandler is required.

 

certainly there are many ways to become a better code

that here the code was just to show you that in my opinion to improve the code that had become share on another topic

without this meaning that is not well-code to the used

 

i think don't need db connection for 1 simple code like this

 

except if you give 1 day reuse

 

each code is written according to our needs

Edited by pirama
Posted (edited)

1. Did you make this code with sweeTs? i just lost my respect toward sweeTs for this COOP lel

 

2. You got the idea and the code we all modified yesterday in my topic and u shared it :D? the //res me voicecommand handler lel again

Edited by AccessDenied
Posted (edited)

1. Did you make this code with sweeTs? i just lost my respect toward sweeTs for this COOP lel

 

2. You got the idea and the code we all modified yesterday in my topic and u shared it :D? the //res me voicecommand handler lel again

yes i take they code and i change it ... and for that i give credits

 

your code and SweeTs code have bug...if player use restart

i drop Thread's and i fix rr bug ...

i told you on your Topic how you can drop Thead's and i fix this code for you can see it 

 

and if you see it is not voicecommand is usercommand

Edited by pirama

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock