Jump to content
  • 0

Item script request (Special)


Question

Posted

Requesting for A GM item:

Description is 100% chance to percentheal 100,100; when receiving all kinds of damage

thanks master scripters!!!!

Goodluck to all of you guys!

7 answers to this question

Recommended Posts

Posted (edited)

I remember once , I used a script with each 10 mili-second hp check , .

Its easy by that haha.

Edit:

Requesting for A GM item:

Description is 100% chance to percentheal 100,100; when receiving all kinds of damage

thanks master scripters!!!!

Goodluck to all of you guys!

Suggestion:

Make your gm @monsterignore.

Edited by dastgirpojee
Posted
I remember once , I used a script with each 10 mili-second hp check , .
like this ? /oops

OnPCLoginEvent:
   if ( getgmlevel() < 99 ) end;
   while ( playerattached() ) {
       if ( hp != maxhp ) {
           .@hp = maxhp - hp;
//            skilleffect 28, .@hp;
           heal .@hp, 0;
       }
       if ( sp != maxsp ) {
           .@sp = maxsp - sp;
//            skilleffect 9, .@sp;
           heal 0, .@sp;
       }
       sleep2 250;
   }

@monsterignore is more practical ...

creating a bonus like this will only make players jealous of you

Posted (edited)
I remember once , I used a script with each 10 mili-second hp check , .
like this ? /oops

OnPCLoginEvent:
if ( getgmlevel() < 99 ) end;
while ( playerattached() ) {
	if ( hp != maxhp ) {
		.@hp = maxhp - hp;
//			skilleffect 28, .@hp;
		heal .@hp, 0;
	}
	if ( sp != maxsp ) {
		.@sp = maxsp - sp;
//			skilleffect 9, .@sp;
		heal 0, .@sp;
	}
	sleep2 250;
}

@monsterignore is more practical ...

creating a bonus like this will only make players jealous of you

Yes, Why Jealous, This script is meant for GM only. :)

@buda

You can lower that

sleep2 250;

250 = 25ms.

@Annie

what if we do 1 ms, will it lag?

Edited by Dastgir Pojee
Posted

I don't think this script will lag

the definition of lag is sent data to client, where there are some script commands run through the clif.c file

playerattach(), hp, maxhp, sp, maxsp are calculated internally in map-server.exe

but still, running in 1ms will eat up a lot of RAM usage

( I believe currently fastest RAM is DDR3 2GB ? or maybe I'm outdated ... depends on your server host data-center I guess )

so its still discourage to do so

some commands that will confirm lagging players are waitingroom ... announce ... which confirmed run through clif.c

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...