![]() |
Bombs and Bows
Can anybody tell me how to add bombs and arrows weapons to my playerworld please? Like the default weapons on Classic iPhone
|
.....?
|
You script them.
As *Bow and/or *Bomb, and add them using addweapon to player. Important Functions: shootarrow(dir); putbomb(power, x, y); Search the forums they're probably out there already. |
arent there problems with the gmap and default bows and arrows though?
|
Quote:
I posted them before here: http://forums.graalonline.com/forums...36&postcount=3 |
I think you can just add yourself Bombs and Bow...
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
The default weapons are implemented with built-in scripts, if you want to write a custom one then you need to use a different weapon name.
I'm not sure if we have already posted the default scripts, but they are quite simple, here the bomb and bow: PHP Code:
PHP Code:
|
what would be the NPC code to add bombs to a player... as in if somebody said "10 bombs" it would add 10 bombs to the player?
|
does nobody know or does it not exist x_x
|
PHP Code:
|
Quote:
where would i put the PHP code... |
PHP Code:
Bombs and arrows can only be added serverside, which is why the triggeractions are placed in the script. Your welcome. |
Quote:
However, to answer your question, you'd place it in a level. Then when you go to the level, you would say "10 bombs". |
Quote:
|
I did it that way because he did not specify that he wanted gralats to be deducted.
And what in God's name is a memory editor? o_o |
Quote:
|
Quote:
|
Quote:
I didn't say what i meant very clearly... i mean if the the player says "#amount bombs" they get that many... and charge 1 gralat per bomb |
Quote:
|
Quote:
|
And I still don't know...
|
Quote:
"Be clear on your ability level. In other words, do not post asking for scripts, or asking people to fix scripts that are above your ability level. If you are writing a script to aid learning, then try writing a simpler script. If you are looking for a script for a server, then the best solution is probably to hire a scripter." Tig's script provides a decent base for a solution to your problem. If you want to change gralats, take a look at the variable player.gralats If you want to split player.chat into two parts, look at the tokenize function. |
All times are GMT +2. The time now is 09:39 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.