if (ch->pcdata->killpoints < killpt){
send_to_char ("You do not have the proper amount of killpoints required to remort!\n\r", ch);
return;
}
else if (ch->pcdata->warpoints < reqwps)
{
send_to_char ("You do not have the proper amount of warpoints required to remort!\n\r", ch);
return;
}
if (ch->pcdata->killpoints < killpt)Should give me what I am looking for? Also yes this would be the last check on killpoints and warpoints in this function.
{
send_to_char ("You do not have the proper amount of killpoints to remort!\n\r", ch);
}
(ch->pcdata->warpoints < reqwps)
{
send_to_char ("You do not have the proper amount of warpoints to remort!\n\r", ch);
return;
}
if (not enough killpoints) {
if (not enough warpoints) {
error message;
return;
}
/ * set a flag to know later that you\'re deducting warpoints, e. g.: */
enough_warpoints = 1;
}
else
enough_killpoints = 1;
if (ch->pcdata->killpoints < killpt){
if (ch->pcdata->warpoints < reqwps){
send_to_char ("You either do not have the proper amount of warpoints or killpoints required to remort!\n\r", ch);
return;
}
}
I want to change it to something like:
Or
Here is the full code as it is now:
What I would like the code to do is check if they do or do not have the killpoints to remort to either allow them to remort OR move on and check to see if they have the required warpoints to either remort or not.
Am I even close in what I wrote above?