Jump to content
  • 0

help Regarding Neuralizer


GM Takumirai

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

My problem is the item when use if weight is more than 0 it still can used but the skill points is not reset ..

i need your help to modify my script because i can't get it to the correct one

{ if(Weight < 0){callfunc "F_CashReset";}else{dispbottom "Your weight is not [0] make sure to check your weight"; getitem 12213,1;} },{},{}

if weight is < or = to 0 go to call function

else

if weight is over the weight message will appear and the item will not be used but the item is still in the inventory

Edited by GM Takumirai
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

double check your code....

 if(Weight < 0){

your weight will never below 0

you want it to check whether it is 0 or not...but you only check the number below 0 and not 0 itself..

so the correct 1 should be

 if(Weight <= 0){

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

Tnx emistry ur a big help

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

×
×
  • Create New...