Guest User

Untitled

a guest
May 16th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.63 KB | None | 0 0
  1. else if((strncmp(comando, "add str", 7) == 0))
  2. {
  3. int add;
  4. int add2 = 0;
  5. char add3[41];
  6. if(player->bStatus.STR >= 32000)
  7. {
  8. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  9. return;
  10. }
  11.  
  12. else
  13.  
  14. {
  15. sscanf(comando, "add str %d",&add);
  16. add2 += player->bStatus.STR;
  17. add2 += add;
  18. if(add >= 20)
  19. {
  20. if(add <= player->StatusPoint)
  21. {
  22. if(add2 <= 32000)
  23. {
  24. player->bStatus.STR += add;
  25. player->StatusPoint -= add;
  26. GetCurrentScore(clientid);
  27. SendStats(clientid);
  28. SendScore(clientid);
  29. SaveChar(1,clientid);
  30. GetCurrentScore(clientid);
  31. }
  32. else
  33. {
  34. sprintf(add3,"Não pode add [%d] pontos limite de 32000.", add2);
  35. SendClientMsg(clientid,add3);
  36. return;
  37. }
  38. }
  39. else
  40. {
  41. sprintf(add3,"Você não possui pontos sufuciente.");
  42. SendClientMsg(clientid,add3);
  43. return;
  44. }
  45. }else
  46. {
  47. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  48. SendClientMsg(clientid,add3);
  49. }
  50. }
  51. return;
  52. }
  53. else if((strncmp(comando, "add dex", 7) == 0))
  54. {
  55. int add;
  56. int add2 = 0;
  57. char add3[41];
  58. char ops[1024];
  59. char ops1[1024];
  60. char ops2[1024];
  61. char quest[1024];
  62. int var;
  63. char fama[1024];
  64. if(player->bStatus.DEX >= 32000)
  65. {
  66. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  67. return;
  68. }
  69. else
  70. {
  71. sscanf(comando, "add dex %d",&add);
  72. add2 += player->bStatus.DEX;
  73. add2 += add;
  74. if(add >= 20)
  75. {
  76. if(add <= player->StatusPoint)
  77. {
  78. if(add2 <= 32000)
  79. {
  80. player->bStatus.DEX += add;
  81. player->StatusPoint -= add;
  82.  
  83. var = add/3;
  84. player->bStatus.Attack += var;
  85. GetCurrentScore(clientid);
  86. SendStats(clientid);
  87. SendScore(clientid);
  88. SaveChar(1,clientid);
  89. GetCurrentScore(clientid);
  90. }
  91. else
  92. {
  93. sprintf(add3,"Não pode add [%d] pontos limite de 32000.", add2);
  94. SendClientMsg(clientid,add3);
  95. return;
  96. }
  97. }
  98. else
  99. {
  100. sprintf(add3,"Você não possui pontos sufuciente.");
  101. SendClientMsg(clientid,add3);
  102. return;
  103. }
  104. }else
  105. {
  106. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  107. SendClientMsg(clientid,add3);
  108. }
  109. }
  110. return;
  111. }
  112. else if((strncmp(comando, "add int", 7) == 0))
  113. {
  114. int add;
  115. int add2 = 0;
  116. char add3[41];
  117. if(player->bStatus.INT >= 12000)
  118. {
  119. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  120. return;
  121. }
  122. else
  123. {
  124. sscanf(comando, "add int %d",&add);
  125. if(add >= 30)
  126. {
  127. add2 += player->bStatus.INT;
  128. add2 += add;
  129. if(add <= player->StatusPoint)
  130. {
  131. if(add2 <= 12000)
  132. {
  133. player->bStatus.INT += add;
  134. player->StatusPoint -= add;
  135. GetCurrentScore(clientid);
  136. SendStats(clientid);
  137. SendScore(clientid);
  138. SaveChar(1,clientid);
  139. GetCurrentScore(clientid);
  140. }
  141. else
  142. {
  143. sprintf(add3,"Não pode add [%d] pontos limite de 12000.", add2);
  144. SendClientMsg(clientid,add3);
  145. return;
  146. }
  147. }
  148. else
  149. {
  150. sprintf(add3,"Você não possui pontos sufuciente.");
  151. SendClientMsg(clientid,add3);
  152. return;
  153. }
  154. }else
  155. {
  156. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  157. SendClientMsg(clientid,add3);
  158. }
  159. }
  160. return;
  161. }
  162. else if((strncmp(comando, "add con", 7) == 0))
  163. {
  164. int add;
  165. int add2 = 0;
  166. int var;
  167. char add3[41];
  168. if(player->bStatus.CON >= 12000)
  169. {
  170. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  171. return;
  172. }
  173. else
  174. {
  175. sscanf(comando, "add con %d",&add);
  176. if(add >= 20)
  177. {
  178. add2 += player->bStatus.INT;
  179. add2 += add;
  180. if(add <= player->StatusPoint)
  181. {
  182. if(add2 <= 12000)
  183. {
  184. var = add/3;
  185. player->bStatus.Defense += var;
  186. player->bStatus.CON += add;
  187. player->StatusPoint -= add;
  188. GetCurrentScore(clientid);
  189. SendStats(clientid);
  190. SendScore(clientid);
  191. SaveChar(1,clientid);
  192. GetCurrentScore(clientid);
  193. }
  194. else
  195. {
  196. sprintf(add3,"Não pode add [%d] pontos limite de 12000.", add2);
  197. SendClientMsg(clientid,add3);
  198. return;
  199. }
  200. }
  201. else
  202. {
  203. sprintf(add3,"Você não possui pontos sufuciente.");
  204. SendClientMsg(clientid,add3);
  205. return;
  206. }
  207. }else
  208. {
  209. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  210. SendClientMsg(clientid,add3);
  211. }
  212. }
  213. return;
  214. }
  215. else if((strncmp(comando, "add especial1", 13) == 0)) // w,f,s,t
  216. {
  217. int add;
  218. int add2 = 0;
  219. char add3[41];
  220. if(player->bStatus.wMaster >= 200)
  221. {
  222. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  223. return;
  224. }
  225. else
  226. {
  227. sscanf(comando, "add especial1 %d",&add);
  228. if(add >= 20)
  229. {
  230. add2 += player->bStatus.wMaster;
  231. add2 += add;
  232. if(add <= player->MasterPoint)
  233. {
  234. if(add2 <= 200)
  235. {
  236. player->bStatus.wMaster += add;
  237. player->MasterPoint -= add;
  238. GetCurrentScore(clientid);
  239. SendStats(clientid);
  240. SendScore(clientid);
  241. SaveChar(1,clientid);
  242. GetCurrentScore(clientid);
  243. }
  244. else
  245. {
  246. sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
  247. SendClientMsg(clientid,add3);
  248. return;
  249. }
  250. }
  251. else
  252. {
  253. sprintf(add3,"Você não possui pontos sufuciente.");
  254. SendClientMsg(clientid,add3);
  255. return;
  256. }
  257. }
  258. else
  259. {
  260. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  261. SendClientMsg(clientid,add3);
  262. }
  263. }
  264. return;
  265. }
  266. else if((strncmp(comando, "add especial2", 13) == 0)) // w,f,s,t
  267. {
  268. int add;
  269. int add2 = 0;
  270. char add3[41];
  271. if(player->bStatus.fMaster >= 200)
  272. {
  273. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  274. return;
  275. }
  276. else
  277. {
  278. sscanf(comando, "add especial2 %d",&add);
  279. if(add >= 20)
  280. {
  281. add2 += player->bStatus.fMaster;
  282. add2 += add;
  283. if(add <= player->MasterPoint)
  284. {
  285. if(add2 <= 200)
  286. {
  287. player->bStatus.fMaster += add;
  288. player->MasterPoint -= add;
  289. GetCurrentScore(clientid);
  290. SendStats(clientid);
  291. SendScore(clientid);
  292. SaveChar(1,clientid);
  293. GetCurrentScore(clientid);
  294. }
  295. else
  296. {
  297. sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
  298. SendClientMsg(clientid,add3);
  299. return;
  300. }
  301. }
  302. else
  303. {
  304. sprintf(add3,"Você não possui pontos sufuciente.");
  305. SendClientMsg(clientid,add3);
  306. return;
  307. }
  308. }
  309. else
  310. {
  311. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  312. SendClientMsg(clientid,add3);
  313. }
  314. }
  315.  
  316. return;
  317. }
  318. else if((strncmp(comando, "add especial3", 13) == 0)) // w,f,s,t
  319. {
  320. int add;
  321. int add2 = 0;
  322. char add3[41];
  323. if(player->bStatus.sMaster >= 200)
  324. {
  325. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  326. return;
  327. }
  328. else
  329. {
  330. sscanf(comando, "add especial3 %d",&add);
  331. if(add >= 20)
  332. {
  333. add2 += player->bStatus.sMaster;
  334. add2 += add;
  335. if(add <= player->MasterPoint)
  336. {
  337. if(add2 <= 200)
  338. {
  339. player->bStatus.sMaster += add;
  340. player->MasterPoint -= add;
  341. GetCurrentScore(clientid);
  342. SendStats(clientid);
  343. SendScore(clientid);
  344. SaveChar(1,clientid);
  345. GetCurrentScore(clientid);
  346. }
  347. else
  348. {
  349. sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
  350. SendClientMsg(clientid,add3);
  351. return;
  352. }
  353. }
  354. else
  355. {
  356. sprintf(add3,"Você não possui pontos sufuciente.");
  357. SendClientMsg(clientid,add3);
  358. return;
  359. }
  360. }
  361. else
  362. {
  363. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  364. SendClientMsg(clientid,add3);
  365. }
  366. }
  367. return;
  368. }
  369. else if((strncmp(comando, "add especial4", 13) == 0)) // w,f,s,t
  370. {
  371. int add;
  372. int add2 = 0;
  373. char add3[41];
  374. if(player->bStatus.tMaster >= 200)
  375. {
  376. SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
  377. return;
  378. }
  379. else
  380. {
  381. sscanf(comando, "add especial4 %d",&add);
  382. if(add >= 20)
  383. {
  384. add2 += player->bStatus.tMaster;
  385. add2 += add;
  386. if(add <= player->MasterPoint)
  387. {
  388. if(add2 <= 200)
  389. {
  390. player->bStatus.tMaster += add;
  391. player->MasterPoint -= add;
  392. GetCurrentScore(clientid);
  393. SendStats(clientid);
  394. SendScore(clientid);
  395. SaveChar(1,clientid);
  396. GetCurrentScore(clientid);
  397. }
  398. else
  399. {
  400. sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
  401. SendClientMsg(clientid,add3);
  402. return;
  403. }
  404. }
  405. else
  406. {
  407. sprintf(add3,"Você não possui pontos sufuciente.");
  408. SendClientMsg(clientid,add3);
  409. return;
  410. }
  411. }
  412. else
  413. {
  414. sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
  415. SendClientMsg(clientid,add3);
  416. }
  417. }
  418. return;
  419. }
Add Comment
Please, Sign In to add comment