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 (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 (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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...