Question bout <local.mob> - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Question bout <local.mob> (/Thread-Question-bout-local-mob) |
Question bout <local.mob> - seafish - 11-03-2013 12:27 AM hello! In merge script there is: Code: SERV.NEWNPC c_elem_<local.mob> Instead of <local.mob> I should to place npc chardef? For example: Code: SERV.NEWNPC c_elem_fat RE: Question bout <local.mob> - Extreme - 11-03-2013 12:29 AM Yeah, the <local.mob> is the final of the chardef RE: Question bout <local.mob> - seafish - 11-03-2013 12:30 AM thanks! Hm, I forgot something to ask! Code: local.mob= c_elem_<local.mob> under resourcefound trigger. This will create new elem from my elem list? RE: Question bout <local.mob> - XuN - 11-03-2013 02:26 AM local.mob=agapite serv.newnpc=c_elem_<local.mob> this will works if you have this npc scripted, you must ensure that only existing npcs are being called in this function. RE: Question bout <local.mob> - Mordaunt - 11-03-2013 04:27 AM Reading the script helps: Quote:Custom elementals can be added easily for your custom ores, just ensure that their reads [DEFNAME c_elem_<ore name>] The script looks to see what ore you just dug up and spawns an elemental based upon it, taking the ore name. The ore name becomes <local.mob> allowing you to summon c_elem_<local.mob> Where <local.mob> is for example iron, if you just dug up iron then the script would summon c_elem_iron Code: //paste this to each [REGIONRESOURCE <oretype>] section in sphere_items_provisions_ore.scp There is an error that crept in there somewhere which I have now corrected. the last serv.newnpc contained the name c_elem_<local.mob> instead of just <local.mob> RE: Question bout <local.mob> - seafish - 11-03-2013 05:57 AM thank you guys! Its really helpful info! |