Jump to content

Kubix

Members
  • Content Count

    150
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Kubix

  1. Hello, community I wanna show you my release - Followers like in World of Warcraft (maybe XD) I start write this in august 2015 o.O Current version: 2.0.1 Languages: Russian/English FluxCP addon: included Some info: (sorry for my English) Based on SQL and dynamic variables. 4 classes: Warrior, Healer, Mage, Assassin Max. Follower level: 7 Followers have a item level. Mission types: Standart- rewards taken from SQL Random- rewards taken from arrays for each follower level Special (if variable random_reward = 1) you can set your special item ID for each mission, if random reward is ON. Chance for complete: You can set your standart chance for complete mission (standart: 25%) Each mission have a requirement for item level (if you want) So, if mission req. item level = 50 and Follower item level = 100 chance for complete will be like 60% (if 25 = standart) But if Follower item level = 0 and mission item level = 50 chance will be (5%~) How to create a new Follower from game? You can create a NPC that gives a Followers, or new items for each Follower For create just use a function: callfunc("Companion_Create", unique_id from 'companion_list' table in SQL); I have a companion in DB: Name: Mellisandra UniqueID: 1 Class: 2 (healer) so, i create a simple script: map,x,y,face[tab]script[tab]Simple Follower[tab]sprite,{ mes "Hello! I can create Follower for you!"; next; if(select("yes, please!:No, thx") == 2) close; callfunc("Companion_Create", 1); close; } this script will give a player Follower with ID 1 (Mellisandra) Guys, i'm really sorry for my english, I wanted to tell you all information, but I can not express the idea Maybe someone will use this and create guide for you. I'll try to answer your questions. Special thanks for: Google Translate. Good luck:) Script: http://pastebin.com/5cMPGsMh SQL: http://pastebin.com/465XdhBr Time function: http://upaste.me/aba022682946e3a7d Together (with FluxCP addons): Companions_ENGLISH.rar Preview addons: http://kubix-service.ru/?module=followers&action=list_all http://kubix-service.ru/?module=missions&action=list Preview video (russian interface, sorry): https://www.youtube.com/watch?v=j3u4dIfKVs0&feature=youtu.be https://www.youtube.com/watch?v=cdGGQ50VmhY&feature=youtu.be Original post from Russian eA-Support: http://ea-support.ws/index.php?/topic/3467-s-sistema-soratnikov-world-of-warcraft/
  2. check passwords in /config/servers.php
  3. 150$ basic functionality +70$ some additional functions
  4. Up. I start release this idea. I write a flux cp addon that integrates RO account with Xenforo account (maybe later i will add IPB support and others) I need 1-2 days to finish testing
  5. yup, and they have different tables in DB
  6. What a forum do u use? IPB? Xenforo? etc. Need some more information about this, i will try to release.
  7. i dont give you a code that change the name for change name replace this: // changename to this: query_sql("UPDATE `char` SET `name` = '" + @name + "' WHERE `char_id` = '" + getcharid(0) + "'");
  8. prt_fild08,176,346,3 script name 50,{ mes "input new name"; input(@name$); query_sql("SELECT name FROM `char` WHERE `name` = '" + @name$ + "'", @newName$); if(@newName$ != ""){ mes "this name is already used"; close; } for(.i = 0; .i < getarraysize(.badSymbol$); .i++){ if(compare(@name$, .badSymbol$[.i])){ mes "you can't use name with this symbol"; close; } } // changename close; OnInit: setarray .badSymbol$[0], "#", "@"; //add your's end; } idk, try this. I don't have a server for test now :<
  9. Change this: query_sql("SELECT name FROM `char` WHERE `name` = '" + @name$, @newName$); to this: query_sql("SELECT name FROM `char` WHERE `name` = " + @name$, @newName$);
  10. check: mes "input new name"; input(@name$); query_sql("SELECT name FROM `char` WHERE `name` = '" + @name$, @newName$); if(@newName$ != ""){ mes "this name is already used"; close; } for(.i = 0; .i < getarraysize(.badSymbol$); .i++){ if(compare(@name$, .badSymbol$[.i])){ mes "you can't use name with this symbol"; close; } } // changename close; OnInit: setarray .badSymbol$[0], "#", "@"; //add your's end; bad english
  11. OnPCKillEvent: // when kill if(killedrid != getcharid(0)) pvpPoints++; end; OnPCDieEvent: // when die if(killerrid != getcharid(0)) pvpPoints--; end; this will work on any maps for trader see '12 - NPC Trader-Related Commands' on /doc/script_commands.txt and /doc/sample/npc_trader_sample.txt
  12. Check when what? When login? When level up? When click on NPC? When login: OnPCLoginEvent: if(BaseLevel == 90) announce "announce", bc_self; end; When levelup: OnPCBaseLvUpEvent: if(BaseLevel == 90) announce "announce", bc_self; end; When Click: npc_header { if(BaseLevel == 90) { announce "announce", bc_self; } else { // not 90 lvl } }
×
×
  • Create New...

Important Information

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