Hello I'm new to src modification, I have this hourly system based on src, I would like to add bonus item if the player is on the specific map.
example i will get the hourly points but when im in Prontera map I will get the bonus item (potions).
Here's what in my src pc.cpp
int64 hourly_points = pc_readregistry(sd, reference_uid(add_str(sd->hourly_system.point_name), 0));
int64 get = hourly_points + sd->hourly_system.point;
pc_setregistry(sd, reference_uid(add_str(sd->hourly_system.point_name), 0), get);
char msg[CHAT_SIZE_MAX];
sprintf(msg, "You Got [ %d ] Hourly Point , You have now [ %d ] Hourly Points.", sd->hourly_system.point , static_cast<int>(get));
Im new to src I dont know what are the scripts to type condition in src.
condition: if player is in prontera he's going to get bonus Siege Potion Box if not, just the normal hourly point
Question
jmsngls
Hello I'm new to src modification, I have this hourly system based on src, I would like to add bonus item if the player is on the specific map.
example i will get the hourly points but when im in Prontera map I will get the bonus item (potions).
Here's what in my src pc.cpp
Im new to src I dont know what are the scripts to type condition in src.
Edited by jmsnglscondition: if player is in prontera he's going to get bonus Siege Potion Box if not, just the normal hourly point
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.