Jump to content
Raymart

Auto Reset Stats when log in

Recommended Posts

Sir/Ma'am pa request naman po ng Auto Reset Stats kpag nag Log in ung mga Players na ang ay Stats 250 meron po ba nun please pengi naman po salamat po

Link to comment
Share on other sites

Try this.

-    script    StatReset    -,{
OnPCLoginEvent:
   query_sql("SELECT account_id FROM `char` WHERE str>=250 || agi>=250 || dex>=250 || luk>=250 || vit>=250 || int>=250 AND char_id='"+getcharid(0,strcharinfo(0))+"'",@account_id);
   if(getarraysize(@account_id)>0)
       resetstatus;
end;
}

Link to comment
Share on other sites

Sorry its not || its OR

-    script    StatReset    -,{
OnPCLoginEvent:
   query_sql("SELECT account_id FROM `char` WHERE (str>=250 OR agi>=250 OR dex>=250 OR luk>=250 OR vit>=250 OR int>=250) AND char_id='"+getcharid(0,strcharinfo(0))+"'",@account_id);
   if(getarraysize(@account_id)>0)
       resetstatus;
end;
}

Link to comment
Share on other sites

Help please its not working

Pa request naman po jan ng kapag nag log in Automatic ma rereset ung Stats ng players kpag 250 ang MaxStats

anyone please

Link to comment
Share on other sites

meron bang nairereport na error ang map server about sa script. kasi yan lang ang naisip kong posibleng paraan bukod sa source modification.

Link to comment
Share on other sites

Join the conversation

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.